File tree Expand file tree Collapse file tree 3 files changed +8
-6
lines changed
Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ download_and_install() {
3030 tar -xzf ${1} .tar.gz
3131 cd ${1}
3232 echo " Configuring " ${1} " ."
33- ./configure --quiet --enable-shared --prefix=${LIBS_DIR} $3
33+ ./configure --quiet --enable-shared --enable-openmp -- prefix=${LIBS_DIR}
3434 echo " Compiling and installing " ${1} " ."
3535 {
3636 make
@@ -41,6 +41,6 @@ download_and_install() {
4141 fi ;
4242}
4343
44- download_and_install ${FFTW} http://www.fftw.org " --enable-openmp --enable-avx "
44+ download_and_install ${FFTW} http://www.fftw.org
4545
4646echo " Installation succesful."
Original file line number Diff line number Diff line change @@ -217,16 +217,18 @@ Notes:
217217 failed without a working X server).
218218
219219Install on OS X
220- ===============
220+ =================
221221
222222The inbuilt OS X gcc compiler (actually clang) doesn't have OpenMP support. A workaround is to
223223
224224- install gcc5 (via homebrew, for example: ``brew install gcc --without-multilib ``)
225225- set CC environment variable to point to that compiler: ``export CC=gcc-5 ``
226226
227+ Alternatively, gcc can be installed through ``sudo port install gcc5 `` and CC environment
228+ variable can be set via ``export CC=gcc-mp-5 ``
227229
228- Once this is done, run ``bin/install.sh `` which will compile fftw3 and
229- sundials (in a local subdirectory) using this compiler.
230+ Once this is done, run ``bin/install-fftw .sh `` and `` bin/install-sundials.sh `` which will
231+ compile fftw3 and sundials (in a local subdirectory) using this compiler.
230232
231233Also install pytest (``conda install pytest `` if using conda) and
232234``pyvtk `` via pip (``pip install pyvtk ``).
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ def glob_cfiles(path, excludes):
8787 com_link .append ('-openmp' )
8888else :
8989 com_args .append ('-fopenmp' )
90- com_args .append ('-fopenmp' )
90+ com_link .append ('-fopenmp' )
9191
9292
9393com_inc = [numpy .get_include (), INCLUDE_DIR ]
You can’t perform that action at this time.
0 commit comments