Skip to content

Commit 0b07d8d

Browse files
jhuber6rorth
authored andcommitted
[Offload] Fix APU detection for MI300 testing (llvm#143026)
Summary: We have this check when the target is MI300 but it fails if this environment variable isn't set. Set a default value of '0' if not present so that will be converted to bool false.
1 parent 668cff2 commit 0b07d8d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

offload/test/lit.cfg

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ if 'HSA_ENABLE_SDMA' in os.environ:
3636

3737
# Architectures like gfx942 may or may not be APUs so an additional environment
3838
# variable is required as some tests can be APU specific.
39-
if 'IS_APU' in os.environ:
40-
config.environment['IS_APU'] = os.environ['IS_APU']
39+
config.environment['IS_APU'] = os.environ.get('IS_APU', '0')
4140

4241
# set default environment variables for test
4342
if 'CHECK_OPENMP_ENV' in os.environ:

0 commit comments

Comments
 (0)