Skip to content

Commit

Permalink
Make suppressif more specific (chapel-lang#24326)
Browse files Browse the repository at this point in the history
Makes a suppressif more specific so it only suppresses the test config
that causes the test to fail.

[Not Reviewed - trivial]
  • Loading branch information
jabraham17 authored Feb 3, 2024
2 parents 251a94c + aa4e142 commit 3716a34
Showing 1 changed file with 28 additions and 2 deletions.
30 changes: 28 additions & 2 deletions test/gpu/native/compilerDriver.suppressif
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,2 +1,28 @@
# this test fails with llvm ir failures when using rocm
CHPL_GPU==amd
#!/usr/bin/env python3

# compiler driver causes llvm ir failure when using system llvm from rocm-5.4.3

import os
import subprocess

CHPL_HOME = str(os.getenv('CHPL_HOME'))

chplenv_ = subprocess.check_output(
[CHPL_HOME + "/util/printchplenv", "--all", "--internal", "--simple"]
).decode("utf-8")

chplenv = {
k: v
for (k, v) in [
line_str.split("=", 2)
for line_str in chplenv_.splitlines()
if line_str.count("=") == 1
]
}

# suppress if rocm-5.4.3 in llvm-config path
suppress = (
chplenv.get("CHPL_GPU", "none") == "amd"
and "rocm-5.4.3" in chplenv.get("CHPL_LLVM_CONFIG", "none")
)
print(suppress)

0 comments on commit 3716a34

Please sign in to comment.