FS#32103 - [fftw] Add "--enable-openmp" to CONFIGURE flags.
Attached to Project:
Arch Linux
Opened by Kevin Dodd (Jesin) - Friday, 19 October 2012, 21:20 GMT
Last edited by Ronald van Haren (pressh) - Monday, 31 March 2014, 20:19 GMT
Opened by Kevin Dodd (Jesin) - Friday, 19 October 2012, 21:20 GMT
Last edited by Ronald van Haren (pressh) - Monday, 31 March 2014, 20:19 GMT
|
Details
The upstream FFTW project supplies two libraries for
multithreaded computations: pthreads and openmp. They are
stored in differently-named .a and .so files, so both
options can be compiled into the same package with no
problems. See
http://www.fftw.org/fftw3_doc/Installation-and-Supported-Hardware_002fSoftware.html
for a basic summary.
I tried compiling the fftw package from the ABS tree after replacing: CONFIGURE="./configure F77=gfortran --prefix=/usr \ --enable-shared --enable-threads --enable-type-prefix" with: CONFIGURE="./configure F77=gfortran --prefix=/usr \ --enable-shared --enable-threads --enable-openmp --enable-type-prefix" in the PKGBUILD, and it seems to have worked with no problems and without a significant size increase compared to compilation without that added flag. |
This task depends upon
Closed by Ronald van Haren (pressh)
Monday, 31 March 2014, 20:19 GMT
Reason for closing: Implemented
Additional comments about closing: fftw 3.3.4-1
Monday, 31 March 2014, 20:19 GMT
Reason for closing: Implemented
Additional comments about closing: fftw 3.3.4-1
From the documentation :
--enable-openmp: Like --enable-threads, but using OpenMP compiler directives in order to induce parallelism rather than spawning its own threads directly, and installing an ‘fftw3_omp’ library rather than an ‘fftw3_threads’ library (see Multi-threaded FFTW). You can use both --enable-openmp and --enable-threads since they compile/install libraries with different names. By default, the OpenMP routines are not compiled.