-
Notifications
You must be signed in to change notification settings - Fork 148
ExternalProject SUNDIALS 3.2.1 #1960
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
alexsavulescu
wants to merge
136
commits into
master
Choose a base branch
from
slds
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
136 commits
Select commit
Hold shift + click to select a range
4581ab4
ExternalProject SUNDIALS 3.2.1
alexsavulescu 0a3692c
ninja needs BUILD_BYPRODUCTS in ExternalProject_Add
alexsavulescu d38f489
Merge branch 'master' into slds
alkino f36e64a
Format
alkino daf0008
Merge remote-tracking branch 'origin/master'
alkino 857bd86
Format
alkino 152e86f
Fix name of SUNR functions
alkino e613da1
Fix segfault (missing IDASetUserData) and N_VSpace_... prototypes.
nrnhines f2c6b4d
Build sundials with the same type than nrn
alkino 5c5ae92
Fully remove sundials
alkino 3341256
Merge remote-tracking branch 'origin/master'
alkino 9a38810
IDASetStopTime should not be called for interpolation.
nrnhines e0b3ef1
ctest -R netpar passes. MPI_Comm not available from cvodeobj.cpp
nrnhines 5a11a3f
Revert "ctest -R netpar passes. MPI_Comm not available from cvodeobj.…
nrnhines aeb1684
ctest -R netpar passes. Works with NRNMPI_DYNAMICLOAD.
nrnhines 00b2c66
Problem translating long long foo for NRNMPI_DYNAMICLOAD
nrnhines 174036f
update nrntest (cvode version 3 and no hhtable)
nrnhines 554b326
Merge branch 'master' into slds
alkino 56a1134
Selected messages from old digest-debug branch
nrnhines 7e6761c
libcrypt for mac
nrnhines 7176f4a
Merge branch 'master' into slds
nrnhines 824732b
No need link libsundials_nvecparallel.a
nrnhines a2044cb
Merge branch 'master' into slds
nrnhines 5e0162b
format
nrnhines c60a3eb
Left out }
nrnhines fe5c851
Revert "No need link libsundials_nvecparallel.a"
nrnhines d0bf3e7
Merge branch 'master' into slds
nrnhines 65b13f5
"major.minor.patch" = h.CVode().version()
nrnhines 12ddfb5
eliminate pytest warning
nrnhines 84f05af
CVode 3.2.1 json data for test_nrntest_fast.py
nrnhines ffdb5fb
Merge branch 'master' into slds
alkino 34062f3
Merge remote-tracking branch 'origin/master'
alkino dbfc76f
sundials nvecparallel needs MPI
alkino 06f2bc3
Merge remote-tracking branch 'origin/slds'
alkino ff9bb0f
Fix FindSUNDIALS.cmake
alkino 1a84a72
fix linkage
alkino 910d9ac
Try to clean linkage with sundials
alkino 7e9ddf1
Format
alkino 5ac7685
Don't use corenrn if corenrn not set
alkino 009a914
Fix fix and fix
alkino 53683bf
Format
alkino 9d6b033
trick depends
alkino 7dbf02f
try to help sundials to find MPI
alkino 6f92bd5
set LIBDIR
alkino 6a4e401
-tp=haswell is not accepted by sundials
alkino 0eda725
Merge branch 'master' into slds
alkino f9749ca
Merge remote-tracking branch 'origin/master'
alkino cfe9ef1
Remove too more spaces
alkino 6279e08
Merge remote-tracking branch 'origin/master'
alkino 858b829
CVodeSetFdata => CVodeSetUserData
alkino 67b677c
Merge branch 'master' into slds
nrnhines 3777c05
eliminate some compiler warnings
nrnhines 8f17f69
update nrntest to master merged hines/update-t12
nrnhines 93be65e
Merge branch 'master' into slds
nrnhines 30ee751
on previous master merge, resolve conflict incorrectly
nrnhines 8c46a46
Merge branch 'master' into slds
nrnhines 9414fb6
Merge remote-tracking branch 'origin/master'
alkino 7cf79d6
Merge branch 'master' into slds
nrnhines be164eb
some files missing in NRN_PARALLEL_SRC_FILES
nrnhines b40997a
ninja format
nrnhines 30c9890
Merge branch 'master' into slds (master for test_nlayer.py conflict)
nrnhines d7c2d10
cvode.version() got lost in a merge
nrnhines fe1260f
test_kschan data for cvode 3.2.1
nrnhines cf0ccb1
test_nrntest_fast.py tolerance adjustment for t14
nrnhines f26fc9d
missing json file for ctest -R parallel::nrntest_fast
nrnhines 8368752
cv3 version of json file for test_netcvode.py
nrnhines ca98ce5
Merge branch 'master' into slds
nrnhines eb5e85a
temporarily turn off CI tests of rxd
nrnhines 0d4cc21
temporarily turn off (most) wheel builds and gitlab CI
nrnhines 21c7826
adust a few tolerance values to see if more CI pass
nrnhines 95b5cca
Merge branch 'digest-debug-2' into digest-debug-3
nrnhines 52cd8b8
nrn_digest(i) will print the details of the i'th digest item.
nrnhines 97b1089
missing include
nrnhines 3277919
Allow digest when multiple threads.
nrnhines 02c9d51
digest print solvex enter y
nrnhines 8b4d2c2
sundial RPowerR uses hoc_pow. nrn_digest(i, "abort") calls abort() on
nrnhines a66cc8f
Documentation for nrn_digest and use_exp_pow_precision
nrnhines 6910d0a
nrn_digest signature consistent with documentation
nrnhines 932bdff
occvode.cpp -Wall free
nrnhines a8e8b85
Merge branch 'master' into hines/digest-debug-3
nrnhines 50b1163
Merge branch 'master' into hines/digest-debug-3
nrnhines 73c8c79
The configure option is NRN_ENABLE_ARCH_INDEP_EXP_POW
nrnhines 71a629c
format
nrnhines 4d4889e
Revert "adust a few tolerance values to see if more CI pass"
nrnhines befbb64
Revert "temporarily turn off (most) wheel builds and gitlab CI"
nrnhines 083a1c8
Revert "temporarily turn off CI tests of rxd"
nrnhines 4c5905b
Merge branch 'master' into slds
nrnhines ce227b4
Merge branch 'hines/digest-debug-3' into hines/cv3-digest
nrnhines e6017d3
Use the neuronsimulator fork of sundials
nrnhines 4267638
passes ctest -j 8 (with "-ffp-model=strict")
nrnhines befec84
Merge branch 'master' into hines/cv3-digest
nrnhines 8099fd1
Merge branch 'master' into hines/cv3-digest
nrnhines 7c670b7
Update test/rxd/testdata for cvode3
nrnhines e0a6bc2
document how to update rxd test data
nrnhines 8ab1989
Revert "Update test/rxd/testdata for cvode3"
nrnhines 5bdaf5e
fix typo
nrnhines 9870f3f
update rxdtest repository (e0a6bc281) 2024-10-22
nrnhines f0d233a
Merge branch 'master' into hines/cv3
nrnhines 710c2c2
cd share/lib/python/neuron/tests; python test_rxd.py --save test_rxd.…
nrnhines 45e0fc9
extend the rxd test data instructions
nrnhines 9db5f29
propagate compiler from nrn to sundials. SUNDIALS MPI_ENABLE=OFF
nrnhines 5de9b21
Merge branch 'master' into hines/cv3
nrnhines 4464390
Since sundials MPI_ENABLE=OFF have our own nvector_parallel.h
nrnhines 5614e5d
nvector_parallel.cpp agnostic with respect to MPI_Comm
nrnhines 285dada
cast between sunindextype and long
nrnhines f17e9a8
update a cv3.json file.
nrnhines ac12c82
nrnparallel_ld follows nvector_parallel style for MPI_Comm
nrnhines 34b82a7
relax resolution requirements so macosx will pass CI without needing
nrnhines 4e12ea1
adjust tol of test_nrntest_fast.py::test_t14[cvode_long_double-3-t]
nrnhines b398627
black format for test/.../*.py
nrnhines 68bc030
Changes after ctest coverage analysis.
nrnhines 1c2308c
Merge branch 'master' into slds
nrnhines 82c2f25
Replace cvode.extra_scatter_gather with h.beforestep_callback
nrnhines 1204452
rxd tests use rxdtestdata hines/data-fix af269297
nrnhines 11afb3b
rxd/testdata when test/rxd/3d/test_multi_gridding_mix.py not skipped
nrnhines c084919
Merge branch 'master' into hines/cv3
nrnhines f96ebe3
Replace cvode.extra_scatter_gather with h.beforestep_callback
nrnhines a5f2b48
use rxdtestdata hines/cvode3 721ac55a
nrnhines 7286d43
Don't use cvode version specific filenames or keys for json data.
nrnhines a89f3e4
ecs_diffusion needs section to gather data.
nrnhines 0467293
Merge branch 'master' into hines/rxd-data-fix
nrnhines d38be72
Merge branch 'hines/rxd-data-fix' into hines/cv3 and update testdata
nrnhines 091c5c0
Merge branch 'master' into hines/cv3
nrnhines 7a1f69c
Merge branch 'master' into slds
nrnhines a4ef2f1
cmake: update nrniv_lib linking for SUNDIALS v3 submodule
nrnhines 6473470
build: remove obsolete SUNDIALS sources
nrnhines 85dd992
format
nrnhines 64bdb8b
test_neurondemo comparison data for cover3454-cv3
nrnhines 164ace7
build: add SUNDIALS as git submodule (neuronsimulator fork)
nrnhines f15768c
format
nrnhines 380c950
update coding-conventions (prints black version)
nrnhines 978ba25
style: reformat rxd files with black under Python 3.10
nrnhines 2ac31c1
build: make format-pr more robust
nrnhines f3baad7
Compare two RxD testdata directories pairwise
nrnhines 84cc3cb
update rxdtestdata to hines/slds-data b8d97dd92b
nrnhines 6f730a6
Merge branch 'master' into slds-wt
nrnhines File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| # cmake/modules/FindSUNDIALS.cmake | ||
|
|
||
| set(SUNDIALS_SOURCE_DIR "${PROJECT_SOURCE_DIR}/external/sundials") | ||
|
|
||
| # Use the same pattern as other submodules in NEURON | ||
| if(NOT EXISTS "${SUNDIALS_SOURCE_DIR}/CMakeLists.txt") | ||
| message(STATUS "SUNDIALS submodule not found.") | ||
| include(${PROJECT_SOURCE_DIR}/cmake/ExternalProjectHelper.cmake) | ||
| nrn_initialize_submodule(external/sundials) | ||
| endif() | ||
|
|
||
| if(NOT EXISTS "${SUNDIALS_SOURCE_DIR}/CMakeLists.txt") | ||
| message(FATAL_ERROR "Failed to initialize SUNDIALS submodule") | ||
| endif() | ||
|
|
||
| set(SUNDIALS_PREFIX "${CMAKE_BINARY_DIR}/external/sundials") | ||
| set(SUNDIALS_INCLUDE_DIR "${SUNDIALS_PREFIX}/include") | ||
| set(SUNDIALS_LIB_DIR "${SUNDIALS_PREFIX}/lib") | ||
|
|
||
| include(ExternalProject) | ||
| ExternalProject_Add( | ||
| sundials | ||
| SOURCE_DIR "${SUNDIALS_SOURCE_DIR}" | ||
| PREFIX "${SUNDIALS_PREFIX}" | ||
| CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=<INSTALL_DIR> | ||
| -DCMAKE_C_COMPILER=${CMAKE_C_COMPILER} | ||
| -DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER} | ||
| -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} | ||
| -DCMAKE_POSITION_INDEPENDENT_CODE=ON | ||
| -DBUILD_SHARED_LIBS=OFF | ||
| -DEXAMPLES_ENABLE_C=OFF | ||
| -DEXAMPLES_INSTALL=OFF | ||
| -DBUILD_ARKODE=OFF | ||
| -DBUILD_CVODES=OFF | ||
| -DBUILD_IDAS=OFF | ||
| -DBUILD_KINSOL=OFF | ||
| -DMPI_ENABLE=OFF | ||
| -DPTHREAD_ENABLE=ON | ||
| -DSUNDIALS_PRECISION=double | ||
| -DUSE_GENERIC_MATH=ON | ||
| BUILD_BYPRODUCTS | ||
| <INSTALL_DIR>/lib/libsundials_cvode.a <INSTALL_DIR>/lib/libsundials_ida.a | ||
| <INSTALL_DIR>/lib/libsundials_nvecserial.a <INSTALL_DIR>/lib/libsundials_nvecpthreads.a | ||
| INSTALL_DIR "${SUNDIALS_PREFIX}") | ||
|
|
||
| add_library(SUNDIALS INTERFACE IMPORTED) | ||
| add_dependencies(SUNDIALS sundials) | ||
|
|
||
| set(SUNDIALS_INCLUDE_DIR | ||
| "${SUNDIALS_INCLUDE_DIR}" | ||
| PARENT_SCOPE) | ||
| set(SUNDIALS_LIB_DIR | ||
| "${SUNDIALS_LIB_DIR}" | ||
| PARENT_SCOPE) | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.