Providers
ArchSpecInfo
ArchSpecInfo(stage1_arch, stage2_archs)
Provides the information of how GPU compilation is carried out of a single virtual architecture.
FIELDS
| Name | Description |
|---|---|
| stage1_arch | A virtual architecture, str, arch number only |
| stage2_archs | A list of virtual or gpu architecture, list of Stage2ArchInfo |
CudaArchsInfo
CudaArchsInfo(arch_specs)
Provides a list of CUDA archs to compile for.
Read the whole Chapter 5 of CUDA Compiler Driver NVCC Reference Guide if more detail is needed.
FIELDS
| Name | Description |
|---|---|
| arch_specs | A list of ArchSpecInfo |
CudaInfo
CudaInfo(defines, objects, pic_objects, rdc_objects, rdc_pic_objects, archive_objects, archive_pic_objects, archive_rdc_objects, archive_rdc_pic_objects, dlink_rdc_objects, dlink_rdc_pic_objects)
Provides cuda build artifacts that can be consumed by device linking or linking process.
This provider is analog to CcInfo but only contains necessary information for linking in a flat structure. Objects are grouped by direct and transitive, because we have no way to split them again if merged a single depset.
FIELDS
CudaToolchainConfigInfo
CudaToolchainConfigInfo(action_configs, artifact_name_patterns, cuda_toolkit, features, toolchain_identifier)
Provides the information of what the toolchain is and how the toolchain is configured.
FIELDS
CudaToolkitInfo
CudaToolkitInfo(path, version_major, version_minor, nvlink, link_stub, bin2c, fatbinary)
Provides the information of CUDA Toolkit.
FIELDS
Stage2ArchInfo
Provides the information of how the stage 2 complation is carried out.
One and only one of virtual, gpu and lto must be set to True. For example, if arch is set to 80 and virtual is True, then a
ptx embedding process is carried out for compute_80. Multiple Stage2ArchInfo can be used for specifying how a stage 1 result is
transformed into its final form.
FIELDS
| Name | Description |
|---|---|
| arch | str, arch number |
| virtual | bool, use virtual arch, default False |
| gpu | bool, use gpu arch, default False |
| lto | bool, use lto, default False |