Class: SGC::CU::CUInit

Inherits:
Object
  • Object
show all
Defined in:
lib/cuda/driver/init.rb

Class Method Summary collapse

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