From a1b2dcf87d179a52fd09a25f4e87829e781229cf Mon Sep 17 00:00:00 2001 From: Michael LIAO Date: Tue, 5 Nov 2019 11:51:00 -0500 Subject: [PATCH] Use portable macro for deprecation message. [ROCm/clr commit: 7ca43b98d15403f9452bf2958f9ed471b5b1345c] --- .../clr/hipamd/include/hip/hcc_detail/hip_runtime_api.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/projects/clr/hipamd/include/hip/hcc_detail/hip_runtime_api.h b/projects/clr/hipamd/include/hip/hcc_detail/hip_runtime_api.h index 7c11eaf0bf..d955c078dd 100644 --- a/projects/clr/hipamd/include/hip/hcc_detail/hip_runtime_api.h +++ b/projects/clr/hipamd/include/hip/hcc_detail/hip_runtime_api.h @@ -2994,7 +2994,8 @@ hipError_t hipExtLaunchMultiKernelMultiDevice(hipLaunchParams* launchParamsList, * When using this API, start the profiler with profiling disabled. (--startdisabled) * @warning : hipProfilerStart API is under development. */ -hipError_t hipProfilerStart() __attribute__((deprecated("use roctracer/rocTX instead"))); +DEPRECATED("use roctracer/rocTX instead") +hipError_t hipProfilerStart(); /** @@ -3002,7 +3003,8 @@ hipError_t hipProfilerStart() __attribute__((deprecated("use roctracer/rocTX ins * When using this API, start the profiler with profiling disabled. (--startdisabled) * @warning : hipProfilerStop API is under development. */ -hipError_t hipProfilerStop() __attribute__((deprecated("use roctracer/rocTX instead"))); +DEPRECATED("use roctracer/rocTX instead") +hipError_t hipProfilerStop(); /**