HIP: Fix broken version check for deprecated macro
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 25 Jul 2023 12:20:16 +0000 (08:20 -0400)
committerTobias Hieta <tobias@hieta.se>
Thu, 27 Jul 2023 13:28:30 +0000 (15:28 +0200)
Remove test hack that was accidentally pushed.

(cherry picked from commit 73105a54725ec11165dd8c90ca3b7a0b1b9cd6e3)

clang/lib/Headers/__clang_hip_libdevice_declares.h

index ed576027cb5e585d688cb1ae5d772058905d0b84..f15198b3d9f93e9fb13e8d68a918a5f1c193299c 100644 (file)
@@ -317,7 +317,7 @@ __device__ __attribute__((pure)) __2f16 __ocml_log_2f16(__2f16);
 __device__ __attribute__((pure)) __2f16 __ocml_log10_2f16(__2f16);
 __device__ __attribute__((pure)) __2f16 __ocml_log2_2f16(__2f16);
 
-#if HIP_VERSION_MAJOR * 100 + HIP_VERSION_MINOR >= 560 || 1
+#if HIP_VERSION_MAJOR * 100 + HIP_VERSION_MINOR >= 560
 #define __DEPRECATED_SINCE_HIP_560(X) __attribute__((deprecated(X)))
 #else
 #define __DEPRECATED_SINCE_HIP_560(X)