|
docc 0.8.3 (0d44999b)
C++ API Reference
|
Classes | |
| struct | CudaComputeCapability |
| A CUDA compute capability together with the name(s) of the device(s) that report it. More... | |
| struct | CudaMmaSupport |
| class | CudaArch |
| class | CudaMmaFragmentStrategy |
| Classic rocwmma fragment-based emit strategy (load/store/mma_sync/fill_fragment). More... | |
| class | CudaWmmaLibDependency |
Functions | |
| std::vector< CudaComputeCapability > | query_cuda_compute_capabilities () |
| Queries the CUDA compute capabilities of the GPUs available on this machine. | |
| const CudaArch * | cuda_arch_from_schedule_type (const structured_control_flow::ScheduleType &schedule) |
| Wrapper, that allows us to store this inside the ScheduleType in the future. | |
| const CudaArch * | cuda_arch_from_env () |
| const CudaArch * | cuda_arch_from_available_hardware () |
| const CudaArch * | cuda_arch_parse (const std::string &name) |
| data_flow::ImplementationType | ImplementationType_CUDA_MMA_FRAGMENT ("CUDA_MMA") |
| const CudaArch * sdfg::gpu::cuda::cuda_arch_from_available_hardware | ( | ) |
| const CudaArch * sdfg::gpu::cuda::cuda_arch_from_env | ( | ) |
| const CudaArch * sdfg::gpu::cuda::cuda_arch_from_schedule_type | ( | const structured_control_flow::ScheduleType & | schedule | ) |
Wrapper, that allows us to store this inside the ScheduleType in the future.
For now, we look at the env-vars or query the local system
| const CudaArch * sdfg::gpu::cuda::cuda_arch_parse | ( | const std::string & | name | ) |
|
inline |
| std::vector< CudaComputeCapability > sdfg::gpu::cuda::query_cuda_compute_capabilities | ( | ) |
Queries the CUDA compute capabilities of the GPUs available on this machine.
Internally this invokes nvidia-smi --query-gpu=name,compute_cap and parses its output. Each device's compute capability is reported as an integer using the same convention as clang (e.g. 8.6 -> 86, 12.0 -> 120).
The returned list is uniqued by compute capability (the names of all devices sharing a capability are collected together) and sorted from the highest to the lowest compute capability.
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |