From 93b17def0b57f4e6ad0aae19a952db2d37ed18ba Mon Sep 17 00:00:00 2001 From: pensun Date: Fri, 2 Sep 2016 09:50:49 -0500 Subject: [PATCH] Add deprecated information for threadfence() and threadfence_system() function. Change-Id: I71793e9f48523776a87c91f3ed1eef7b9a9da88b [ROCm/hip commit: 1f2607153f92ac3a9ad9841c34b16e7dd15c21cc] --- projects/hip/include/hcc_detail/hip_runtime.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/hip/include/hcc_detail/hip_runtime.h b/projects/hip/include/hcc_detail/hip_runtime.h index 108f73a7eb..f8166e7897 100644 --- a/projects/hip/include/hcc_detail/hip_runtime.h +++ b/projects/hip/include/hcc_detail/hip_runtime.h @@ -531,7 +531,7 @@ __device__ void __threadfence_block(void); * * @warning __threadfence is a stub and map to no-op, application should set "export HSA_DISABLE_CACHE=1" to disable both L1 and L2 caches. */ -__device__ void __threadfence(void); +__device__ void __threadfence(void) __attribute__((deprecated("Provided for compile-time compatibility, not yet functional"))); /** * @brief threadfence_system makes writes to pinned system memory visible on host CPU. @@ -542,7 +542,7 @@ __device__ void __threadfence(void); * * @warning __threadfence_system is a stub and map to no-op, application should set "export HSA_DISABLE_CACHE=1" to disable both L1 and L2 caches. */ -__device__ void __threadfence_system(void); +__device__ void __threadfence_system(void) __attribute__((deprecated("Provided for compile-time compatibility, not yet functional"))); // doxygen end Memory Fence