Re: [firedrake] Firedrake compatible C compiling
Readding firedrake in cc.
On 25 May 2020, at 10:36, Cotter, Colin J <colin.cotter@imperial.ac.uk> wrote:
The thing I was grappling with is that the mpi4py-fft pip package requires an FFTW installation. I've tried with various apt packages but they don't get put in the right place and I'm worried that they might not be compatible somehow. I saw that the Dedalus package requires to build your own FFTW, using the following:
./configure --prefix=$BUILD_HOME \ CC=mpiicc CFLAGS="-O3 -xCORE-AVX2" \ CXX=mpiicpc CPPFLAGS="-O3 -xCORE-AVX2" \ F77=mpiifort F90FLAGS="-O3 -xCORE-AVX2" \ MPICC=mpiicc MPICXX=mpiicpc \ LDFLAGS="-lmpi" \ --enable-shared \ --enable-mpi --enable-openmp --enable-threads make -j make install
So the main thing to figure out is how to modify that to build something that will work with my mpi4py communicators. Do you reckon it is ok just to grab the compiler flags etc from the Firedrake PETSc build?
Get petsc to build fftw, then point mpi4py-fft at it: export FFTW_INCLUDE_DIR=$PETSC_DIR/$PETSC_ARCH/include export FFTW_LIBRARY_DIR=$PETSC_DIR/$PETSC_ARCH/lib pip install mpi4py-fft ? Lawrence
Get petsc to build fftw, then point mpi4py-fft at it: export FFTW_INCLUDE_DIR=$PETSC_DIR/$PETSC_ARCH/include export FFTW_LIBRARY_DIR=$PETSC_DIR/$PETSC_ARCH/lib pip install mpi4py-fft ?
Thanks, that allows pip to install! I'll update the list when I've figured out if this is working. all the best --cjc
participants (2)
- 
                
                Cotter, Colin J
- 
                
                Lawrence Mitchell