Skip to content

Files

Latest commit

 

History

History
This branch is 3555 commits behind mlcommons/ck:master.

get-cl

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
Click here to see the table of contents.

Note that this README is automatically generated - don't edit! See more info.

Description

Detect or install Microsoft C compiler.

See more info.

Information

  • Category: Compiler automation.
  • CM GitHub repository: mlcommons@ck
  • GitHub directory for this script: GitHub
  • CM meta description for this script: _cm.json
  • CM "database" tags to find this script: get,cl,compiler,c-compiler,cpp-compiler,get-cl
  • Output cached?: True

Usage

CM installation

Guide

CM pull repository

cm pull repo mlcommons@ck

CM script automation help

cm run script --help

CM CLI

  1. cm run script --tags=get,cl,compiler,c-compiler,cpp-compiler,get-cl

  2. cm run script "get cl compiler c-compiler cpp-compiler get-cl"

  3. cm run script 7dbb770faff947c0

  • variations can be seen here

  • input_flags can be seen here

CM Python API

Click here to expand this section.
import cmind

r = cmind.access({'action':'run'
                  'automation':'script',
                  'tags':'get,cl,compiler,c-compiler,cpp-compiler,get-cl'
                  'out':'con',
                  ...
                  (other input keys for this script)
                  ...
                 })

if r['return']>0:
    print (r['error'])

CM GUI

cm run script --tags=gui --script="get,cl,compiler,c-compiler,cpp-compiler,get-cl"

Use this online GUI to generate CM CMD.

CM modular Docker container

TBD


Customization

Default environment

Click here to expand this section.

These keys can be updated via --env.KEY=VALUE or env dictionary in @input.json or using script flags.


Script workflow, dependencies and native scripts

Click here to expand this section.
  1. Read "deps" on other CM scripts from meta
  2. Run "preprocess" function from customize.py
  3. Read "prehook_deps" on other CM scripts from meta
  4. Run native script if exists
  5. Read "posthook_deps" on other CM scripts from meta
  6. Run "postrocess" function from customize.py
  7. Read "post_deps" on other CM scripts from meta

Script output

New environment keys (filter)

  • +PATH
  • CM_CL_*
  • CM_COMPILER_*
  • CM_CXX_COMPILER_*
  • CM_C_COMPILER_*
  • CM_LINKER_*

New environment keys auto-detected from customize

  • CM_CL_BIN
  • CM_CL_BIN_WITH_PATH
  • CM_CL_CACHE_TAGS
  • CM_COMPILER_CACHE_TAGS
  • CM_COMPILER_FAMILY
  • CM_COMPILER_VERSION
  • CM_CXX_COMPILER_BIN
  • CM_CXX_COMPILER_FLAG_OUTPUT
  • CM_CXX_COMPILER_FLAG_VERSION
  • CM_CXX_COMPILER_WITH_PATH
  • CM_C_COMPILER_BIN
  • CM_C_COMPILER_FLAG_OUTPUT
  • CM_C_COMPILER_FLAG_VERSION
  • CM_C_COMPILER_WITH_PATH

Maintainers