aitemplate.backend.cuda
target_def
CUDA target specialization
Classes:
|
CUDA target. |
|
FBCUDA target. |
- class aitemplate.backend.cuda.target_def.CUDA(template_path='/home/runner/work/AITemplate/AITemplate/3rdparty/cutlass', ait_static_files_path='/home/runner/work/AITemplate/AITemplate/3rdparty/../static', arch='80', cuda_version=None, **kwargs)[source]
CUDA target.
Methods:
cc
()Compiler for this target.
compile_cmd
([executable])Compile command string template for this target.
Environment variable to select the device.
Returns a list of options for the device compiler.
Returns a list of options for the host compiler.
Returns a list of include directories for a compiler.
select_minimal_algo
(algo_names)Select the minimal algorithm from the list of algorithms.
Source file extension for this target.
- cc()[source]
Compiler for this target.
- Raises:
NotImplementedError – Need to be implemented by subclass.
- compile_cmd(executable=False)[source]
Compile command string template for this target.
- Parameters:
executable (bool, optional) – Whether the command with compile an executable object by default False
- Raises:
NotImplementedError – Need to be implemented by subclass.
- dev_select_flag()[source]
Environment variable to select the device.
- Returns:
Environment variable to select the device.
- Return type:
str
- get_device_compiler_options() List[str] [source]
Returns a list of options for the device compiler.
- Raises:
NotImplementedError – Need to be implemented by subclass.
- get_host_compiler_options() List[str] [source]
Returns a list of options for the host compiler.
- Raises:
NotImplementedError – Need to be implemented by subclass.
- get_include_directories() List[str] [source]
Returns a list of include directories for a compiler.
- Raises:
NotImplementedError – Need to be implemented by subclass.
- class aitemplate.backend.cuda.target_def.FBCUDA(arch='80', remote_cache_bytes=None, **kwargs)[source]
FBCUDA target. Used in Meta internal env only.
Methods:
There is no ld by default in the prod env.
cc
()Compiler for this target.
Options for compiling the target.
Returns a list of options for the device compiler.
Returns a list of options for the host compiler.
Returns a list of include directories for a compiler.
Check if the current environment is CI.
postprocess_build_dir
(build_dir)Postprocess a build directory, allows final modification of the build directory before building.
remote_logger
(record)Upload the record to Scuba table
- binary_compile_cmd()[source]
There is no ld by default in the prod env. Instead, we use ld from the gvfs path.
- cc()[source]
Compiler for this target.
- Raises:
NotImplementedError – Need to be implemented by subclass.
- get_device_compiler_options() List[str] [source]
Returns a list of options for the device compiler.
- Raises:
NotImplementedError – Need to be implemented by subclass.
- get_host_compiler_options() List[str] [source]
Returns a list of options for the host compiler.
- Raises:
NotImplementedError – Need to be implemented by subclass.
- get_include_directories() List[str] [source]
Returns a list of include directories for a compiler.
- Raises:
NotImplementedError – Need to be implemented by subclass.
- in_ci_env() bool [source]
Check if the current environment is CI.
- Returns:
Returns True if env CI_FLAG=CIRCLECI and TRICK_CI_ENV is not set (or 0).
- Return type:
bool