diff options
-rw-r--r-- | var/spack/repos/builtin/packages/sundials/package.py | 7 | ||||
-rw-r--r-- | var/spack/repos/builtin/packages/sundials/test_nvector_parhyp.patch | 18 |
2 files changed, 25 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/sundials/package.py b/var/spack/repos/builtin/packages/sundials/package.py index 1c2fa177f2..2dd05bf127 100644 --- a/var/spack/repos/builtin/packages/sundials/package.py +++ b/var/spack/repos/builtin/packages/sundials/package.py @@ -197,6 +197,13 @@ class Sundials(CMakePackage): depends_on('superlu-mt+blas', when='+superlu-mt') # ========================================================================== + # Patches + # ========================================================================== + + # remove OpenMP header file and function from hypre vector test code + patch('test_nvector_parhyp.patch', when='@2.7.0:3.0.0') + + # ========================================================================== # SUNDIALS Settings # ========================================================================== diff --git a/var/spack/repos/builtin/packages/sundials/test_nvector_parhyp.patch b/var/spack/repos/builtin/packages/sundials/test_nvector_parhyp.patch new file mode 100644 index 0000000000..ecb71d4a5f --- /dev/null +++ b/var/spack/repos/builtin/packages/sundials/test_nvector_parhyp.patch @@ -0,0 +1,18 @@ +--- a/examples/nvector/parhyp/test_nvector_parhyp.c ++++ b/examples/nvector/parhyp/test_nvector_parhyp.c +@@ -24,7 +24,6 @@ + #include "test_nvector.h" + + #include <mpi.h> +-#include <omp.h> + + #if defined( SUNDIALS_HAVE_POSIX_TIMERS) && defined(_POSIX_TIMERS) + #include <time.h> +@@ -74,7 +73,6 @@ int main(int argc, char *argv[]) + /* printf("\nRunning with vector length %ld \n \n", veclen); */ + /* Get processor number and total number of processes */ + MPI_Init(&argc, &argv); +- /* omp_set_num_threads(4); */ + comm = MPI_COMM_WORLD; + MPI_Comm_size(comm, &nprocs); + MPI_Comm_rank(comm, &myid); |