File tree Expand file tree Collapse file tree
GPU/GPUTracking/Definitions/Parameters Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ()
You can’t perform that action at this time.
0 commit comments