From 7adeaffd61c071b887e1603121c9cb1564137023 Mon Sep 17 00:00:00 2001 From: Joseph Greathouse Date: Tue, 17 Mar 2020 03:32:59 -0500 Subject: [PATCH] Fix compiler warning on NVCC path (#1942) GCC emits a warning about using static functions like hipCUDAErrorTohipError inside this function, because it has an inline directive, but it's not static. Adding static to this function to silence warnings (and prevent potential problems in the future). [ROCm/clr commit: dc9ecf03f87965da67d4e5dc362e4167de74c9b4] --- projects/clr/hipamd/include/hip/nvcc_detail/hip_runtime_api.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/clr/hipamd/include/hip/nvcc_detail/hip_runtime_api.h b/projects/clr/hipamd/include/hip/nvcc_detail/hip_runtime_api.h index fe17ed79f2..d9eb3e4146 100644 --- a/projects/clr/hipamd/include/hip/nvcc_detail/hip_runtime_api.h +++ b/projects/clr/hipamd/include/hip/nvcc_detail/hip_runtime_api.h @@ -861,7 +861,7 @@ inline static hipError_t hipMemcpy(void* dst, const void* src, size_t sizeBytes, } -inline hipError_t hipMemcpyWithStream(void* dst, const void* src, +inline static hipError_t hipMemcpyWithStream(void* dst, const void* src, size_t sizeBytes, hipMemcpyKind copyKind, hipStream_t stream) { cudaError_t error = cudaMemcpyAsync(dst, src, sizeBytes,