static */
| 313 | } // namespace |
| 314 | |
| 315 | /* static */ port::Status GpuDriver::Init() { |
| 316 | // Cached return value from calling InternalInit(), as cuInit need only be |
| 317 | // called once, but GpuDriver::Init may be called many times. |
| 318 | static port::Status* init_retval = [] { |
| 319 | return new port::Status(InternalInit()); |
| 320 | }(); |
| 321 | return *init_retval; |
| 322 | } |
| 323 | |
| 324 | /* static */ port::Status GpuDriver::GetDevice(int device_ordinal, |
| 325 | CUdevice* device) { |
nothing calls this directly
no test coverage detected