Skip to content
This repository was archived by the owner on Mar 20, 2023. It is now read-only.

Commit 7f5253c

Browse files
committed
Don't pass --gpu in non-GPU builds.
1 parent 9756a4c commit 7f5253c

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

coreneuron/CMakeLists.txt

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -321,13 +321,15 @@ if(EXISTS "${CORENRN_EXTERNAL_BENCHMARK_DATA}")
321321
COMMENT "Running nrnivmodl-core for channel-benchmark mechanisms")
322322
list(APPEND all_output_binaries ${output_binaries})
323323
string(
324-
CONCAT
325-
benchmark_command
326-
"'${CMAKE_BINARY_DIR}/benchmark/${CMAKE_SYSTEM_PROCESSOR}/special-core'"
327-
" --datpath '${CORENRN_EXTERNAL_BENCHMARK_DATA}/channel-benchmark-all-440-cells-2-ranks'"
328-
" --tstop 1 --gpu &&"
329-
"diff out.dat '${CORENRN_EXTERNAL_BENCHMARK_DATA}/channel-benchmark-all-440-cells-2-ranks.gpu.spikes'"
330-
)
324+
CONCAT benchmark_command
325+
"'${CMAKE_BINARY_DIR}/benchmark/${CMAKE_SYSTEM_PROCESSOR}/special-core'"
326+
" --datpath '${CORENRN_EXTERNAL_BENCHMARK_DATA}/channel-benchmark-all-440-cells-2-ranks'"
327+
" --tstop 1")
328+
if(CORENRN_ENABLE_GPU)
329+
string(APPEND benchmark_command " --gpu")
330+
endif()
331+
string(APPEND benchmark_command " && diff out.dat "
332+
"'${CORENRN_EXTERNAL_BENCHMARK_DATA}/channel-benchmark-all-440-cells-2-ranks.gpu.spikes'")
331333
add_test(NAME benchmark COMMAND sh -c "${benchmark_command}")
332334
endif()
333335
set(modfile_directory "${CORENEURON_PROJECT_SOURCE_DIR}/tests/integration/ring_gap/mod")

0 commit comments

Comments
 (0)