From caf1f4fbb41c8549ef6abe625c750c30ae4abaa2 Mon Sep 17 00:00:00 2001 From: Jannik Date: Thu, 4 Jul 2019 02:43:22 +0200 Subject: [PATCH] Fix call to cuda library (#1197) * Remove flags parameter from hipOccupancyMaxPotentialBlockSize This commit makes the hipOccupancyMaxPotentialBlockSize method consistent with hcc path and the CUDA API. [ROCm/hip commit: 2a1b0ba27dfba57b46613d129046d5d710d22380] --- projects/hip/include/hip/nvcc_detail/hip_runtime_api.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/projects/hip/include/hip/nvcc_detail/hip_runtime_api.h b/projects/hip/include/hip/nvcc_detail/hip_runtime_api.h index c1846c1b1e..aca04067e3 100644 --- a/projects/hip/include/hip/nvcc_detail/hip_runtime_api.h +++ b/projects/hip/include/hip/nvcc_detail/hip_runtime_api.h @@ -1216,11 +1216,9 @@ inline static hipError_t hipFuncSetCacheConfig(const void* func, hipFuncCache_t template inline static hipError_t hipOccupancyMaxPotentialBlockSize(int* minGridSize, int* blockSize, T func, size_t dynamicSMemSize = 0, - int blockSizeLimit = 0, - unsigned int flags = 0) { + int blockSizeLimit = 0) { cudaError_t cerror; - cerror = cudaOccupancyMaxPotentialBlockSize(minGridSize, blockSize, func, dynamicSMemSize, - blockSizeLimit, flags); + cerror = cudaOccupancyMaxPotentialBlockSize(minGridSize, blockSize, func, dynamicSMemSize, blockSizeLimit); return hipCUDAErrorTohipError(cerror); }