static */
| 711 | } |
| 712 | |
| 713 | /* static */ void GpuDriver::UnloadModule(GpuContext* context, |
| 714 | CUmodule module) { |
| 715 | ScopedActivateContext activated{context}; |
| 716 | CUresult res = cuModuleUnload(module); |
| 717 | if (res != CUDA_SUCCESS) { |
| 718 | LOG(ERROR) << "failed to unload module " << module |
| 719 | << "; leaking: " << ToString(res); |
| 720 | } |
| 721 | } |
| 722 | |
| 723 | /* static */ port::StatusOr<CUdevice> GpuDriver::DeviceFromContext( |
| 724 | GpuContext* context) { |
nothing calls this directly
no test coverage detected