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

Commit d443f9a

Browse files
authored
Update mod2c to latest module and nmodl args bug fix (#459)
* Update mod2c to latest module * mod2c now aborts when mod files is not threadsafe * this avoids confusing compilation errors for end users * BB5 CI : Specify multiple partitions and remove skl constraint * COMPILE_OPTIONS doesnt work with CMake v3.10; COMPILE_DEFINITIONS works fine * Update nmodl submodule * Bug fix in previous commit : NMODL should run inline pass
1 parent d4ed738 commit d443f9a

File tree

5 files changed

+13
-19
lines changed

5 files changed

+13
-19
lines changed

CMake/MakefileBuildOptions.cmake

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ set(CMAKE_ISPC_FLAGS "${CMAKE_ISPC_FLAGS} --pic")
99
# NMODL CLI options : common and backend specific
1010
# =============================================================================
1111
# if user pass arguments then use those as common arguments
12+
# note that inlining is done by default
13+
set(NMODL_COMMON_ARGS "passes --inline")
14+
1215
if ("${CORENRN_NMODL_FLAGS}" STREQUAL "")
13-
set(NMODL_COMMON_ARGS "passes --inline")
14-
else()
15-
set(NMODL_COMMON_ARGS ${CORENRN_NMODL_FLAGS})
16+
set(NMODL_COMMON_ARGS "${NMODL_COMMON_ARGS} ${CORENRN_NMODL_FLAGS}")
1617
endif()
1718

1819
set(NMODL_CPU_BACKEND_ARGS "host --c")

coreneuron/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ set(LegacyFR_FILES
102102
${CMAKE_CURRENT_SOURCE_DIR}/apps/main1.cpp
103103
${CMAKE_CURRENT_SOURCE_DIR}/io/global_vars.cpp)
104104

105-
set_property(SOURCE ${LegacyFR_FILES} APPEND PROPERTY COMPILE_OPTIONS
106-
"-DCORENRN_USE_LEGACY_UNITS=${CORENRN_USE_LEGACY_UNITS}")
105+
set_property(SOURCE ${LegacyFR_FILES} APPEND PROPERTY COMPILE_DEFINITIONS
106+
"CORENRN_USE_LEGACY_UNITS=${CORENRN_USE_LEGACY_UNITS}")
107107

108108
# =============================================================================
109109
# run KINDERIV_PYTHON_SCRIPT to generate _kinderiv.h

tests/jenkins/install_coreneuron.sh

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,7 @@ else
2222
mkdir build_${CORENRN_TYPE} build_intel_${CORENRN_TYPE}
2323
fi
2424

25-
# default partition is interactive. during night use production
26-
hour=`date +%H`
27-
weekday=`date +%u`
28-
if [ "$hour" -ge "19" ] || [ "$hour" -lt "8" ] || [ $weekday -gt 5 ]; then
29-
export SALLOC_PARTITION="prod";
30-
else
31-
export SALLOC_PARTITION="interactive"
32-
fi
25+
export SALLOC_PARTITION="prod,pre_prod,interactive";
3326

3427
cd $WORKSPACE/build_${CORENRN_TYPE}
3528

@@ -39,8 +32,8 @@ if [ "${CORENRN_TYPE}" = "GPU-non-unified" ]; then
3932
-DCORENRN_ENABLE_GPU=ON \
4033
-DCORENRN_ENABLE_CUDA_UNIFIED_MEMORY=OFF \
4134
-DCMAKE_INSTALL_PREFIX=$WORKSPACE/install_${CORENRN_TYPE}/ \
42-
-DTEST_MPI_EXEC_BIN="srun;--account=proj16;--partition=$SALLOC_PARTITION;--constraint=volta,skl;--gres=gpu:2;--mem;0;-t;00:05:00" \
43-
-DTEST_EXEC_PREFIX="srun;-n;6;--account=proj16;--partition=$SALLOC_PARTITION;--constraint=volta,skl;--gres=gpu:2;--mem;0;-t;00:05:00" \
35+
-DTEST_MPI_EXEC_BIN="srun;--account=proj16;--partition=$SALLOC_PARTITION;--constraint=volta;--gres=gpu:2;--mem;0;-t;00:05:00" \
36+
-DTEST_EXEC_PREFIX="srun;-n;6;--account=proj16;--partition=$SALLOC_PARTITION;--constraint=volta;--gres=gpu:2;--mem;0;-t;00:05:00" \
4437
-DAUTO_TEST_WITH_SLURM=OFF \
4538
-DAUTO_TEST_WITH_MPIEXEC=OFF \
4639
$WORKSPACE/
@@ -49,8 +42,8 @@ elif [ "${CORENRN_TYPE}" = "GPU-unified" ]; then
4942
-DCORENRN_ENABLE_GPU=ON \
5043
-DCORENRN_ENABLE_CUDA_UNIFIED_MEMORY=ON \
5144
-DCMAKE_INSTALL_PREFIX=$WORKSPACE/install_${CORENRN_TYPE}/ \
52-
-DTEST_MPI_EXEC_BIN="srun;--account=proj16;--partition=$SALLOC_PARTITION;--constraint=volta,skl;--gres=gpu:2;--mem;0;-t;00:05:00" \
53-
-DTEST_EXEC_PREFIX="srun;-n;6;--account=proj16;--partition=$SALLOC_PARTITION;--constraint=volta,skl;--gres=gpu:2;--mem;0;-t;00:05:00" \
45+
-DTEST_MPI_EXEC_BIN="srun;--account=proj16;--partition=$SALLOC_PARTITION;--constraint=volta;--gres=gpu:2;--mem;0;-t;00:05:00" \
46+
-DTEST_EXEC_PREFIX="srun;-n;6;--account=proj16;--partition=$SALLOC_PARTITION;--constraint=volta;--gres=gpu:2;--mem;0;-t;00:05:00" \
5447
-DAUTO_TEST_WITH_SLURM=OFF \
5548
-DAUTO_TEST_WITH_MPIEXEC=OFF \
5649
$WORKSPACE/

0 commit comments

Comments
 (0)