Class: SGC::CU::CUInit
- Inherits:
-
Object
- Object
- SGC::CU::CUInit
- Defined in:
- lib/cuda/driver/init.rb
Class Method Summary collapse
-
.init(flags = 0) ⇒ Object
Initialize the CUDA driver API.
Class Method Details
.init(flags = 0) ⇒ Object
Initialize the CUDA driver API. This must be called before other CUDA driver functions.
36 37 38 39 40 |
# File 'lib/cuda/driver/init.rb', line 36 def self.init(flags = 0) status = API::cuInit(flags) Pvt::handle_error(status, "Failed to initialize the CUDA driver API.") nil end |