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

Commit 190b7ea

Browse files
authored
Fix passing CORENRN_NMODL_FLAGS to nrnivmodl_makefile (#461)
* Fix passing CORENRN_NMODL_FLAGS to nrnivmodl_makefile : bug from previous changes * Use nvhpc and latest cuda in jenkins pipeline * Use -D__GCC_ATOMIC_TEST_AND_SET_TRUEVAL=1 (BlueBrain/spack/pull/1004)
1 parent d443f9a commit 190b7ea

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

CMake/MakefileBuildOptions.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ set(CMAKE_ISPC_FLAGS "${CMAKE_ISPC_FLAGS} --pic")
1212
# note that inlining is done by default
1313
set(NMODL_COMMON_ARGS "passes --inline")
1414

15-
if ("${CORENRN_NMODL_FLAGS}" STREQUAL "")
15+
if (NOT "${CORENRN_NMODL_FLAGS}" STREQUAL "")
1616
set(NMODL_COMMON_ARGS "${NMODL_COMMON_ARGS} ${CORENRN_NMODL_FLAGS}")
1717
endif()
1818

tests/jenkins/install_coreneuron.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ CORENRN_TYPE="$1"
1111

1212
if [ "${CORENRN_TYPE}" = "GPU-non-unified" ] || [ "${CORENRN_TYPE}" = "GPU-unified" ]; then
1313
# PGI compiler issue in unstable : BSD-204
14-
module unload unstable && module load archive/2020-12
15-
module load pgi/19.10 cuda hpe-mpi cmake boost
14+
module load nvhpc cuda hpe-mpi cmake boost
1615
mkdir build_${CORENRN_TYPE}
1716
else
1817
module load boost intel hpe-mpi cmake
@@ -36,6 +35,7 @@ if [ "${CORENRN_TYPE}" = "GPU-non-unified" ]; then
3635
-DTEST_EXEC_PREFIX="srun;-n;6;--account=proj16;--partition=$SALLOC_PARTITION;--constraint=volta;--gres=gpu:2;--mem;0;-t;00:05:00" \
3736
-DAUTO_TEST_WITH_SLURM=OFF \
3837
-DAUTO_TEST_WITH_MPIEXEC=OFF \
38+
-DCMAKE_CXX_FLAGS="-D__GCC_ATOMIC_TEST_AND_SET_TRUEVAL=1" \
3939
$WORKSPACE/
4040
elif [ "${CORENRN_TYPE}" = "GPU-unified" ]; then
4141
cmake \
@@ -46,6 +46,7 @@ elif [ "${CORENRN_TYPE}" = "GPU-unified" ]; then
4646
-DTEST_EXEC_PREFIX="srun;-n;6;--account=proj16;--partition=$SALLOC_PARTITION;--constraint=volta;--gres=gpu:2;--mem;0;-t;00:05:00" \
4747
-DAUTO_TEST_WITH_SLURM=OFF \
4848
-DAUTO_TEST_WITH_MPIEXEC=OFF \
49+
-DCMAKE_CXX_FLAGS="-D__GCC_ATOMIC_TEST_AND_SET_TRUEVAL=1" \
4950
$WORKSPACE/
5051
elif [ "${CORENRN_TYPE}" = "AoS" ] || [ "${CORENRN_TYPE}" = "SoA" ]; then
5152
CORENRN_ENABLE_SOA=ON

0 commit comments

Comments
 (0)