[libc-commits] [libc] a82b154 - [libc] Disable nextafter tests for NVPTX

Joseph Huber via libc-commits libc-commits at lists.llvm.org
Tue Aug 1 14:53:14 PDT 2023


Author: Joseph Huber
Date: 2023-08-01T16:52:50-05:00
New Revision: a82b154eb6f892f76abd239e3c6700c537b197bc

URL: https://github.com/llvm/llvm-project/commit/a82b154eb6f892f76abd239e3c6700c537b197bc
DIFF: https://github.com/llvm/llvm-project/commit/a82b154eb6f892f76abd239e3c6700c537b197bc.diff

LOG: [libc] Disable nextafter tests for NVPTX

Summary:
These tests pass just fine on my local system, but the buildbot doesn't
like it. Disable these until we can figure out an alternative.

Added: 
    

Modified: 
    libc/test/src/math/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/libc/test/src/math/CMakeLists.txt b/libc/test/src/math/CMakeLists.txt
index bb12b27b0587e9..65f2b7782c5796 100644
--- a/libc/test/src/math/CMakeLists.txt
+++ b/libc/test/src/math/CMakeLists.txt
@@ -1176,35 +1176,38 @@ add_fp_unittest(
     libc.src.__support.FPUtil.fp_bits
 )
 
-add_fp_unittest(
-  nextafter_test
-  SUITE
-    libc_math_unittests
-  SRCS
-    nextafter_test.cpp
-  HDRS
-    NextAfterTest.h
-  DEPENDS
-    libc.include.math
-    libc.src.math.nextafter
-    libc.src.__support.FPUtil.basic_operations
-    libc.src.__support.FPUtil.fp_bits
-)
+# FIXME: These tests are currently spurious for NVPTX.
+if(NOT LIBC_GPU_TARGET_ARCHITECTURE_IS_NVPTX)
+  add_fp_unittest(
+    nextafter_test
+    SUITE
+      libc_math_unittests
+    SRCS
+      nextafter_test.cpp
+    HDRS
+      NextAfterTest.h
+    DEPENDS
+      libc.include.math
+      libc.src.math.nextafter
+      libc.src.__support.FPUtil.basic_operations
+      libc.src.__support.FPUtil.fp_bits
+  )
 
-add_fp_unittest(
-  nextafterf_test
-  SUITE
-    libc_math_unittests
-  SRCS
-    nextafterf_test.cpp
-  HDRS
-    NextAfterTest.h
-  DEPENDS
-    libc.include.math
-    libc.src.math.nextafterf
-    libc.src.__support.FPUtil.basic_operations
-    libc.src.__support.FPUtil.fp_bits
-)
+  add_fp_unittest(
+    nextafterf_test
+    SUITE
+      libc_math_unittests
+    SRCS
+      nextafterf_test.cpp
+    HDRS
+      NextAfterTest.h
+    DEPENDS
+      libc.include.math
+      libc.src.math.nextafterf
+      libc.src.__support.FPUtil.basic_operations
+      libc.src.__support.FPUtil.fp_bits
+  )
+endif()
 
 add_fp_unittest(
   nextafterl_test


        


More information about the libc-commits mailing list