static */
| 491 | } |
| 492 | |
| 493 | /* static */ bool GpuDriver::FuncSetCacheConfig(CUfunction function, |
| 494 | CUfunc_cache cache_config) { |
| 495 | CUresult res = cuFuncSetCacheConfig(function, cache_config); |
| 496 | if (res != CUDA_SUCCESS) { |
| 497 | LOG(ERROR) << "failed to set CUDA kernel cache config. kernel: " << function |
| 498 | << ", config: " << cache_config << ", result: " << ToString(res); |
| 499 | return false; |
| 500 | } |
| 501 | |
| 502 | return true; |
| 503 | } |
| 504 | |
| 505 | /* static */ port::StatusOr<CUsharedconfig> |
| 506 | GpuDriver::ContextGetSharedMemConfig(GpuContext* context) { |
nothing calls this directly
no test coverage detected