Merge pull request #951 from tycho/nvcc-hipDeviceSetCacheConfig

nvcc_detail/hip_runtime_api.h: add missing hipDeviceSetCacheConfig API

[ROCm/clr commit: 44309ee879]
Этот коммит содержится в:
Maneesh Gupta
2019-03-08 09:22:25 +05:30
коммит произвёл GitHub
родитель ab318d047f 9f642e40ad
Коммит 35ebb36cbd
+10
Просмотреть файл
@@ -79,6 +79,12 @@ typedef enum hipChannelFormatKind {
#define hipBoundaryModeTrap cudaBoundaryModeTrap
#define hipBoundaryModeClamp cudaBoundaryModeClamp
// hipFuncCache
#define hipFuncCachePreferNone cudaFuncCachePreferNone
#define hipFuncCachePreferShared cudaFuncCachePreferShared
#define hipFuncCachePreferL1 cudaFuncCachePreferL1
#define hipFuncCachePreferEqual cudaFuncCachePreferEqual
// hipResourceType
#define hipResourceType cudaResourceType
#define hipResourceTypeArray cudaResourceTypeArray
@@ -614,6 +620,10 @@ inline static hipError_t hipDeviceGetCacheConfig(hipFuncCache_t* pCacheConfig) {
return hipCUDAErrorTohipError(cudaDeviceGetCacheConfig(pCacheConfig));
}
inline static hipError_t hipDeviceSetCacheConfig(hipFuncCache_t cacheConfig) {
return hipCUDAErrorTohipError(cudaDeviceSetCacheConfig(cacheConfig));
}
inline static const char* hipGetErrorString(hipError_t error) {
return cudaGetErrorString(hipErrorToCudaError(error));
}