|
Mila 0.13.48
Deep Neural Network Library
|
CUDA device properties wrapper with caching and convenience methods. More...
#include <string>#include <iostream>#include <sstream>#include <vector>#include <stdexcept>#include <format>#include <cuda_runtime.h>import Cuda.Error;import Cuda.Helpers;Classes | |
| class | Mila::Dnn::Compute::CudaDeviceProps |
| Wrapper for CUDA device properties with cached values. More... | |
Namespaces | |
| namespace | Mila |
| Mila main API namespace. | |
| namespace | Mila::Dnn |
| namespace | Mila::Dnn::Compute |
CUDA device properties wrapper with caching and convenience methods.
Provides a type-safe wrapper around cudaDeviceProp with additional convenience methods for querying device capabilities and formatting. Compatible with CUDA 13.0+ which deprecated clockRate fields.
cudaDeviceProp is intentionally not stored as a member: the struct is large (100+ fields) and causes an MSVC IFC-writer C1001 ICE when it appears in the exported class layout of any module imported into a module that exports a class template. All needed values are cached as individual members during construction.