Skip to content

Commit b7dfc9d

Browse files
committed
GPU CMake: Fix architecture handing for dumpGPUParamByArch.sh
1 parent aecea1d commit b7dfc9d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

GPU/GPUTracking/Definitions/Parameters/gpu_param_header_generator.cmake

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,14 @@ function(generate_gpu_param_header GPU_PARAM_JSON_FILES ARCH_LIST OUT_HEADER OUT
5151
message(FATAL_ERROR "Defaults must be provided in first parameter file")
5252
endif()
5353
if(do_all_architectures GREATER -1)
54-
if(NOT arch MATCHES ^default)
55-
list(APPEND JSON_ARCHITECTURES "${arch}")
56-
endif()
5754
set(list_idx 0)
5855
else()
5956
list(FIND ARCH_LIST_EXT "${arch}" list_idx)
6057
endif()
6158
if(list_idx GREATER -1)
59+
if(NOT arch MATCHES ^default)
60+
list(APPEND JSON_ARCHITECTURES "${arch}")
61+
endif()
6262
string(JSON param_values GET "${JSON_CONTENT}" "${TYPE}" "${param_name}" "${arch}")
6363
if(TYPE STREQUAL "LB")
6464
set(MACRO_NAME "GPUCA_LB_${param_name}")
@@ -95,7 +95,7 @@ function(generate_gpu_param_header GPU_PARAM_JSON_FILES ARCH_LIST OUT_HEADER OUT
9595
if(NOT GPUCA_UNKNOWN_ARCHITECTURES_ARE_DEFAULT)
9696
foreach(item IN LISTS ARCH_LIST)
9797
if(NOT item IN_LIST JSON_ARCHITECTURES)
98-
message(FATAL_ERROR "Missing architecture parameters for ${item}")
98+
message(FATAL_ERROR "Missing architecture parameters for ${item}: Available ${JSON_ARCHITECTURES}")
9999
endif()
100100
endforeach()
101101
endif()

0 commit comments

Comments
 (0)