Skip to content

Conversation

@jhuber6
Copy link
Contributor

@jhuber6 jhuber6 commented May 5, 2025

No description provided.

@llvmbot llvmbot added the libc label May 5, 2025
@jhuber6 jhuber6 requested a review from Artem-B May 5, 2025 18:16
@llvmbot
Copy link
Member

llvmbot commented May 5, 2025

@llvm/pr-subscribers-libc

Author: Joseph Huber (jhuber6)

Changes

Full diff: https://github.com/llvm/llvm-project/pull/138561.diff

1 Files Affected:

  • (modified) libc/test/integration/src/__support/GPU/match.cpp (+3)
diff --git a/libc/test/integration/src/__support/GPU/match.cpp b/libc/test/integration/src/__support/GPU/match.cpp
index 0eadb1364eec7..2d314c2805158 100644
--- a/libc/test/integration/src/__support/GPU/match.cpp
+++ b/libc/test/integration/src/__support/GPU/match.cpp
@@ -14,6 +14,8 @@ using namespace LIBC_NAMESPACE;
 
 // Test to ensure that match any / match all work.
 static void test_match() {
+  // FIXME: Disable on older SMs as they hang for some reason.
+#if !defined(__CUDA_ARCH__) || __CUDA_ARCH__ >= 700
   uint64_t mask = gpu::get_lane_mask();
   EXPECT_EQ(1ull << gpu::get_lane_id(),
             gpu::match_any(mask, gpu::get_lane_id()));
@@ -23,6 +25,7 @@ static void test_match() {
   EXPECT_EQ(expected, gpu::match_any(mask, gpu::get_lane_id() < 16));
   EXPECT_EQ(mask, gpu::match_all(mask, 1));
   EXPECT_EQ(0ull, gpu::match_all(mask, gpu::get_lane_id()));
+#endif
 }
 
 TEST_MAIN(int argc, char **argv, char **envp) {

@jhuber6 jhuber6 merged commit 7f5bf77 into llvm:main May 5, 2025
14 of 17 checks passed
GeorgeARM pushed a commit to GeorgeARM/llvm-project that referenced this pull request May 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants