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

Commit 8da0c2f

Browse files
author
Nicolas Cornu
authored
Remove ISPC that is no more supported by nmodl (#865)
1 parent 2217711 commit 8da0c2f

14 files changed

+10
-389
lines changed

.github/workflows/coreneuron-ci.yml

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ jobs:
3838
- {cmake_option: "-DCORENRN_ENABLE_MPI=OFF"}
3939
- {use_nmodl: ON, py_version: 3.7}
4040
- {use_nmodl: ON}
41-
- {use_ispc: ON, py_version: 3.7}
4241
include:
4342
- os: ubuntu-20.04
4443
config:
@@ -88,24 +87,8 @@ jobs:
8887
env:
8988
PYTHON_VERSION: ${{matrix.config.py_version || env.DEFAULT_PY_VERSION}}
9089

91-
- name: Install ISPC
92-
if: ${{ matrix.config.use_ispc == 'ON' }}
93-
working-directory: ${{runner.workspace}}
94-
run: |
95-
ispc_version="v1.12.0";
96-
if [ "${{ startsWith(matrix.os, 'ubuntu') }}" == "true" ]; then
97-
url_os="linux";
98-
ispc_version_suffix="b";
99-
else
100-
url_os="macOS";
101-
ispc_version_suffix="";
102-
fi;
103-
url="https://github.com/ispc/ispc/releases/download/${ispc_version}/ispc-${ispc_version}${ispc_version_suffix}-${url_os}.tar.gz";
104-
wget -O ispc.tar.gz $url;
105-
mkdir ispc && tar -xvzf ispc.tar.gz -C ispc --strip 1;
106-
10790
- name: Install NMODL dependencies
108-
if: ${{ matrix.config.use_nmodl == 'ON' || matrix.config.use_ispc == 'ON' }}
91+
if: ${{ matrix.config.use_nmodl == 'ON' }}
10992
run: |
11093
python3 -m pip install --upgrade pip jinja2 pyyaml pytest sympy
11194
@@ -178,9 +161,7 @@ jobs:
178161
179162
echo "------- Build, Test and Install -------"
180163
mkdir build && cd build
181-
if [[ "$USE_ISPC" == "ON" ]]; then
182-
cmake_args+=(-DCORENRN_ENABLE_ISPC=ON -DCMAKE_ISPC_COMPILER=${{runner.workspace}}/ispc/bin/ispc)
183-
elif [[ "$USE_NMODL" == "ON" ]]; then
164+
if [[ "$USE_NMODL" == "ON" ]]; then
184165
cmake_args+=(-DCORENRN_ENABLE_NMODL=ON "-DCORENRN_NMODL_FLAGS=sympy --analytic")
185166
fi
186167
cmake .. -G Ninja "${cmake_args[@]}" \
@@ -206,7 +187,6 @@ jobs:
206187
env:
207188
CCACHE_BASEDIR: ${{runner.workspace}}/CoreNeuron
208189
CCACHE_DIR: ${{runner.workspace}}/ccache
209-
USE_ISPC: ${{matrix.config.use_ispc}}
210190
USE_NMODL: ${{matrix.config.use_nmodl}}
211191

212192
- uses: actions/upload-artifact@v3

CMake/CMakeDetermineISPCCompiler.cmake

Lines changed: 0 additions & 21 deletions
This file was deleted.

CMake/CMakeISPCCompiler.cmake.in

Lines changed: 0 additions & 11 deletions
This file was deleted.

CMake/CMakeISPCInformation.cmake

Lines changed: 0 additions & 13 deletions
This file was deleted.

CMake/CMakeTestISPCCompiler.cmake

Lines changed: 0 additions & 77 deletions
This file was deleted.

CMake/MakefileBuildOptions.cmake

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,6 @@
44
# See top-level LICENSE file for details.
55
# =============================================================================
66

7-
# =============================================================================
8-
# Common CXX and ISPC flags
9-
# =============================================================================
10-
11-
# ISPC should compile with --pic by default
12-
set(CMAKE_ISPC_FLAGS "${CMAKE_ISPC_FLAGS} --pic")
13-
147
# =============================================================================
158
# NMODL CLI options : common and backend specific
169
# =============================================================================
@@ -25,7 +18,6 @@ if(NOT "${CORENRN_NMODL_FLAGS}" STREQUAL "")
2518
endif()
2619

2720
set(NMODL_CPU_BACKEND_ARGS "host --c")
28-
set(NMODL_ISPC_BACKEND_ARGS "host --ispc")
2921
set(NMODL_ACC_BACKEND_ARGS "host --c acc --oacc")
3022

3123
# =============================================================================

CMake/packages/Findnmodl.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ find_program(
3535
NAMES nmodl${CMAKE_EXECUTABLE_SUFFIX}
3636
HINTS "${CORENRN_NMODL_DIR}/bin" QUIET)
3737

38-
find_path(nmodl_INCLUDE "nmodl/fast_math.ispc" HINTS "${CORENRN_NMODL_DIR}/include")
38+
find_path(nmodl_INCLUDE "nmodl/fast_math.hpp" HINTS "${CORENRN_NMODL_DIR}/include")
3939
find_path(nmodl_PYTHONPATH "nmodl/__init__.py" HINTS "${CORENRN_NMODL_DIR}/lib")
4040

4141
# Checks 'REQUIRED', 'QUIET' and versions.

CMakeLists.txt

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,6 @@ option(CORENRN_ENABLE_MPI_DYNAMIC "Enable dynamic MPI support" OFF)
131131
option(CORENRN_ENABLE_HOC_EXP "Enable wrapping exp with hoc_exp()" OFF)
132132
option(CORENRN_ENABLE_SPLAYTREE_QUEUING "Enable use of Splay tree for spike queuing" ON)
133133
option(CORENRN_ENABLE_NET_RECEIVE_BUFFER "Enable event buffering in net_receive function" ON)
134-
option(CORENRN_ENABLE_ISPC "Enable ispc interoperability structs and data" OFF)
135134
option(CORENRN_ENABLE_NMODL "Enable external nmodl source-to-source compiler" OFF)
136135
option(CORENRN_ENABLE_CALIPER_PROFILING "Enable Caliper instrumentation" OFF)
137136
option(CORENRN_ENABLE_LIKWID_PROFILING "Enable LIKWID instrumentation" OFF)
@@ -299,11 +298,6 @@ else()
299298
set(COMPILE_LIBRARY_TYPE "STATIC")
300299
endif()
301300

302-
if(CORENRN_ENABLE_ISPC)
303-
enable_language(ISPC)
304-
set(CORENRN_ENABLE_NMODL ON)
305-
endif()
306-
307301
if(CORENRN_ENABLE_MPI)
308302
find_package(MPI REQUIRED)
309303
list(APPEND CORENRN_COMPILE_DEFS NRNMPI=1)
@@ -584,7 +578,6 @@ message(STATUS "OpenMP | ${CORENRN_ENABLE_OPENMP}")
584578
message(STATUS "Use legacy units | ${CORENRN_ENABLE_LEGACY_UNITS}")
585579
message(STATUS "NMODL | ${CORENRN_ENABLE_NMODL}")
586580
if(CORENRN_ENABLE_NMODL)
587-
message(STATUS " ISPC | ${CORENRN_ENABLE_ISPC}")
588581
message(STATUS " FLAGS | ${CORENRN_NMODL_FLAGS}")
589582
endif()
590583
message(STATUS "MOD2CPP PATH | ${CORENRN_MOD2CPP_BINARY}")

coreneuron/CMakeLists.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ configure_file(engine.h.in ${CMAKE_BINARY_DIR}/include/coreneuron/engine.h @ONLY
351351
file(
352352
GLOB_RECURSE main_headers
353353
RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}"
354-
*.h *.hpp *.ispc)
354+
*.h *.hpp)
355355

356356
configure_file("${CORENEURON_PROJECT_BINARY_DIR}/generated/coreneuron/config/neuron_version.hpp"
357357
"${CMAKE_BINARY_DIR}/include/coreneuron/config/neuron_version.hpp" COPYONLY)
@@ -384,8 +384,7 @@ install(
384384
DESTINATION include/
385385
FILES_MATCHING
386386
PATTERN "*.h*"
387-
PATTERN "*.ipp"
388-
PATTERN "*.ispc")
387+
PATTERN "*.ipp")
389388
install(FILES ${MODFUNC_PERL_SCRIPT} ${ENGINEMECH_CODE_FILE} DESTINATION share/coreneuron)
390389

391390
# copy mod2c/nmodl for nrnivmodl-core

0 commit comments

Comments
 (0)