@@ -121,6 +121,7 @@ if config.libomptarget_test_pgo:
121121# For all other targets, we currently assume it is.
122122supports_unified_shared_memory = True
123123supports_apu = False
124+ supports_large_allocation_memory_pool = False
124125if config .libomptarget_current_target .startswith ('nvptx' ):
125126 try :
126127 cuda_arch = int (config .cuda_test_arch [:3 ])
@@ -132,9 +133,11 @@ if config.libomptarget_current_target.startswith('nvptx'):
132133elif config .libomptarget_current_target .startswith ('amdgcn' ):
133134 # amdgpu_test_arch contains a list of AMD GPUs in the system
134135 # only check the first one assuming that we will run the test on it.
135- if not (config .amdgpu_test_arch .startswith ("gfx90a" ) or
136- config .amdgpu_test_arch .startswith ("gfx942" ) or
137- config .amdgpu_test_arch .startswith ("gfx950" )):
136+ if (config .amdgpu_test_arch .startswith ("gfx90a" ) or
137+ config .amdgpu_test_arch .startswith ("gfx942" ) or
138+ config .amdgpu_test_arch .startswith ("gfx950" )):
139+ supports_large_allocation_memory_pool = True
140+ else :
138141 supports_unified_shared_memory = False
139142 # check if AMD architecture is an APU:
140143 if ((config .amdgpu_test_arch .startswith ("gfx942" ) and
@@ -144,6 +147,8 @@ if supports_unified_shared_memory:
144147 config .available_features .add ('unified_shared_memory' )
145148if supports_apu :
146149 config .available_features .add ('apu' )
150+ if supports_large_allocation_memory_pool :
151+ config .available_features .add ('large_allocation_memory_pool' )
147152
148153# Setup environment to find dynamic library at runtime
149154if config .operating_system == 'Windows' :
0 commit comments