@@ -205,7 +205,7 @@ function __init__()
205
205
@warn """
206
206
HSA runtime is unavailable, compilation and runtime functionality will be disabled.
207
207
"""
208
- if parse (Bool, ENV [ " JULIA_AMDGPU_CORE_MUST_LOAD" ] )
208
+ if parse (Bool, get ( ENV , " JULIA_AMDGPU_CORE_MUST_LOAD" , " 0 " ) )
209
209
print_build_diagnostics ()
210
210
error (" Failed to load HSA runtime, but HSA must load, bailing out" )
211
211
end
@@ -217,7 +217,7 @@ function __init__()
217
217
@warn """
218
218
LLD is unavailable, compilation functionality will be disabled.
219
219
"""
220
- if parse (Bool, ENV [ " JULIA_AMDGPU_CORE_MUST_LOAD" ] )
220
+ if parse (Bool, get ( ENV , " JULIA_AMDGPU_CORE_MUST_LOAD" , " 0 " ) )
221
221
print_build_diagnostics ()
222
222
error (" Failed to find ld.lld, but ld.lld must exist, bailing out" )
223
223
end
@@ -228,7 +228,7 @@ function __init__()
228
228
@warn """
229
229
Device libraries are unavailable, device intrinsics will be disabled.
230
230
"""
231
- if parse (Bool, ENV [ " JULIA_AMDGPU_CORE_MUST_LOAD" ] )
231
+ if parse (Bool, get ( ENV , " JULIA_AMDGPU_CORE_MUST_LOAD" , " 0 " ) )
232
232
print_build_diagnostics ()
233
233
error (" Failed to find Device Libs, but Device Libs must exist, bailing out" )
234
234
end
@@ -241,7 +241,7 @@ function __init__()
241
241
@warn """
242
242
HIP library is unavailable, HIP integration will be disabled.
243
243
"""
244
- if parse (Bool, ENV [ " JULIA_AMDGPU_HIP_MUST_LOAD" ] )
244
+ if parse (Bool, get ( ENV , " JULIA_AMDGPU_HIP_MUST_LOAD" , " 0 " ) )
245
245
print_build_diagnostics ()
246
246
error (" Failed to load HIP runtime, but HIP must load, bailing out" )
247
247
end
0 commit comments