From ba5b0b38c64613dfaf711e1cbfc87fb422e0336a Mon Sep 17 00:00:00 2001 From: Todd tiantuo Li Date: Tue, 4 Aug 2020 04:11:35 -0700 Subject: [PATCH] move hipFuncSetCacheConfig from hip_device to hip_module Change-Id: If5a930e1210e76531f5ba9a0e5f5ec98ad473a19 [ROCm/hip commit: efcb882e1970f694ae95179945d8d79978e3c9f1] --- projects/hip/rocclr/hip_device.cpp | 9 --------- projects/hip/rocclr/hip_module.cpp | 9 +++++++++ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/projects/hip/rocclr/hip_device.cpp b/projects/hip/rocclr/hip_device.cpp index b116819846..70548d5328 100644 --- a/projects/hip/rocclr/hip_device.cpp +++ b/projects/hip/rocclr/hip_device.cpp @@ -49,15 +49,6 @@ hipError_t hipDeviceGet(hipDevice_t *device, int deviceId) { HIP_RETURN(hipSuccess); }; -hipError_t hipFuncSetCacheConfig (const void* func, hipFuncCache_t cacheConfig) { - - HIP_INIT_API(hipFuncSetCacheConfig, cacheConfig); - - // No way to set cache config yet. - - HIP_RETURN(hipSuccess); -} - hipError_t hipDeviceTotalMem (size_t *bytes, hipDevice_t device) { HIP_INIT_API(hipDeviceTotalMem, bytes, device); diff --git a/projects/hip/rocclr/hip_module.cpp b/projects/hip/rocclr/hip_module.cpp index 0ddeaedded..4648a6a3a2 100755 --- a/projects/hip/rocclr/hip_module.cpp +++ b/projects/hip/rocclr/hip_module.cpp @@ -201,6 +201,15 @@ hipError_t hipFuncSetAttribute ( const void* func, hipFuncAttribute attr, int va HIP_RETURN(hipSuccess); } +hipError_t hipFuncSetCacheConfig (const void* func, hipFuncCache_t cacheConfig) { + + HIP_INIT_API(hipFuncSetCacheConfig, cacheConfig); + + // No way to set cache config yet. + + HIP_RETURN(hipSuccess); +} + hipError_t ihipModuleLaunchKernel(hipFunction_t f, uint32_t globalWorkSizeX, uint32_t globalWorkSizeY, uint32_t globalWorkSizeZ, uint32_t blockDimX, uint32_t blockDimY, uint32_t blockDimZ,