Skip to main content

cuda_runtime_hardware_class

Function cuda_runtime_hardware_class 

Source
pub fn cuda_runtime_hardware_class() -> Result<HardwareClassId, RuntimeConfigError>
Expand description

Return the canonical CUDA runtime hardware class.

§Examples

use tenferro_gpu::cuda::runtime_adapter::cuda_runtime_hardware_class;

assert_eq!(
    cuda_runtime_hardware_class().unwrap().as_str(),
    "tenferro-cuda.device.v1"
);

§Errors

Returns RuntimeConfigError if the built-in CUDA hardware class violates runtime identifier validation.