This repository was archived by the owner on Mar 20, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff 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} " )
332334endif ()
333335set (modfile_directory "${CORENEURON_PROJECT_SOURCE_DIR} /tests/integration/ring_gap/mod" )
You can’t perform that action at this time.
0 commit comments