static */
| 382 | } |
| 383 | |
| 384 | /* static */ bool GpuDriver::FuncSetCacheConfig(hipFunction_t function, |
| 385 | hipFuncCache_t cache_config) { |
| 386 | hipError_t res = |
| 387 | tensorflow::wrap::hipFuncSetCacheConfig(function, cache_config); |
| 388 | if (res != hipSuccess) { |
| 389 | LOG(ERROR) << "failed to set ROCM kernel cache config. kernel: " << function |
| 390 | << ", config: " << cache_config << ", result: " << ToString(res); |
| 391 | return false; |
| 392 | } |
| 393 | |
| 394 | return true; |
| 395 | } |
| 396 | |
| 397 | /* static */ port::StatusOr<hipSharedMemConfig> |
| 398 | GpuDriver::ContextGetSharedMemConfig(GpuContext* context) { |
nothing calls this directly
no test coverage detected