You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This project requires the following:
- MPI C compiler. For this I used openmpi.
- blas
- lapack
For this report I used openblas as a replacement for both blas and lapack.
Initial report for sw4:
Minimum version of Fortran required using gfortran: F2008
Required arguments to compile with version: "-fdec"
How to compile with gfortran:
First you can download the project by running in bash:
git clone https://github.com/geodynamics/sw4.git
cd sw4
Now we want to setup the project configuration. You can use an existing default by:
cd configs
cp make.linux make.inc
If you are using blas/lapack (as opposed to openblas), then make sure that the libraries can be found in /usr/lib64 and then you can skip step 4 and 5.
Now load your OPENBLAS module. This should set the OPENBLAS_DIR environment variable to the appropriate path to your OPENBLAS build directory.
Next, due to using OPENBLAS, you need to slightly modify the make.inc file. For modifying the make.inc file, under EXTRA_LINK_FLAGS variable replace -L/usr/lib64 -llapack -lblas with -L${OPENBLAS_DIR}/lib -lopenblas.
Modify the compiler variables in the make.inc file "if required".
Finally you can compile the project by running:
cd ../
make
Does it compile with flang-new: No
Replacing the Fortran compiler in the make.inc file to flang-new results in being able to compile the Fortran files, but then getting a lot of linker errors due to a lot of undefined references.
Enable building and execution of the sw4 application with the LLVM Flang compiler.
The text was updated successfully, but these errors were encountered: