forked from chapel-lang/chapel
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make suppressif more specific (chapel-lang#24326)
Makes a suppressif more specific so it only suppresses the test config that causes the test to fail. [Not Reviewed - trivial]
- Loading branch information
Showing
1 changed file
with
28 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |