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

Commit da98ae6

Browse files
authored
Avoid duplicating acc --oacc arguments to NMODL (#486)
* Avoid duplicating 'acc --oacc' arguments to NMODL. - When both CORENRN_ENABLE_NMODL and CORENRN_ENABLE_GPU are true then these arguments were added twice, which triggers a compilation error: file: File does not exist: acc * fix ringtest : spike outputes are now written in current directory and use option -dumpmodel
1 parent 9e37381 commit da98ae6

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

CMakeLists.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -274,9 +274,6 @@ if(CORENRN_ENABLE_NMODL)
274274
set(CORENRN_NMODL_FLAGS
275275
""
276276
CACHE STRING "Extra NMODL options such as passes")
277-
if(CORENRN_ENABLE_GPU)
278-
string(APPEND CORENRN_NMODL_FLAGS " acc --oacc")
279-
endif()
280277
else()
281278
include(AddMod2cSubmodule)
282279
set(CORENRN_MOD2CPP_BINARY ${CMAKE_BINARY_DIR}/bin/mod2c_core${CMAKE_EXECUTABLE_SUFFIX})

tests/jenkins/run_neuron.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ if [ "${TEST_DIR}" = "testcorenrn" ]; then
2323
rm out${TEST}.dat
2424
elif [ "${TEST_DIR}" = "ringtest" ]; then
2525
mkdir ${TEST}
26-
mpirun -n 6 ./x86_64/special ringtest.py -mpi
27-
if [ ! -f coredat/spk6.std ]; then
26+
mpirun -n 6 ./x86_64/special ringtest.py -mpi -dumpmodel
27+
if [ ! -f spk6.std ]; then
2828
echo "Neuron simulation didn't run correctly"
2929
exit 1
3030
fi
31-
cat coredat/spk6.std | sort -k 1n,1n -k 2n,2n > ${TEST}/out_nrn_${TEST}.spk
31+
cat spk6.std | sort -k 1n,1n -k 2n,2n > ${TEST}/out_nrn_${TEST}.spk
3232
elif [ "${TEST_DIR}" = "tqperf" ]; then
3333
mkdir ${TEST}
3434
mpirun -n ${MPI_RANKS} ./x86_64/special -c tstop=50 run.hoc -mpi

0 commit comments

Comments
 (0)