cuda-api-wrappers
cuda-api-wrappers copied to clipboard
scoped_existence_ensurer_t fails if the driver has not been initialized
Currently, scoped_existence_ensurer_t uses context::current::detail_::get_handle()
, which assumes the driver has been initialized. To drop this assumption, we need to check the return status of the CUDA driver API call.