INNER CODE UNIT · Rust

missing_v2_symbol_falls_back_for_blocking_and_refuses_spinwait

NVlabs/cuda-oxide · cuda-bindings/src/lib.rs:152

    fn missing_v2_symbol_falls_back_for_blocking_and_refuses_spinwait() {
        assert_eq!(
            host_func_v2_outcome(cudaError_enum_CUDA_ERROR_NOT_FOUND, CU_HOST_TASK_BLOCKING),
            HostFuncV2Outcome::FallBackToV1
        );
        assert_eq!(
            host_func_v2_outcome(cudaError_enum_CUDA_ERROR_NOT_FOUND, CU_HOST_TASK_SPINWAIT),
            HostFuncV2Outcome::Unsupported
        );
        // Any future mode value is treated like spin-wait: nothing v1 can honour.
        assert_eq!(
            host_func_v2_outcome(cudaError_enum_CUDA_ERROR_NOT_FOUND, 7),
            HostFuncV2Outcome::Unsupported
        );
    }
}

/// Reports the elapsed time in milliseconds between two recorded events.

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…