[Offload] Fix APU detection for MI300 testing (#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.
This commit is contained in:
@@ -36,8 +36,7 @@ if 'HSA_ENABLE_SDMA' in os.environ:
|
|||||||
|
|
||||||
# Architectures like gfx942 may or may not be APUs so an additional environment
|
# Architectures like gfx942 may or may not be APUs so an additional environment
|
||||||
# variable is required as some tests can be APU specific.
|
# variable is required as some tests can be APU specific.
|
||||||
if 'IS_APU' in os.environ:
|
config.environment['IS_APU'] = os.environ.get('IS_APU', '0')
|
||||||
config.environment['IS_APU'] = os.environ['IS_APU']
|
|
||||||
|
|
||||||
# set default environment variables for test
|
# set default environment variables for test
|
||||||
if 'CHECK_OPENMP_ENV' in os.environ:
|
if 'CHECK_OPENMP_ENV' in os.environ:
|
||||||
|
|||||||
Reference in New Issue
Block a user