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