SAFL-CFD-Lab / VFS-Wind

GNU General Public License v2.0
34 stars 32 forks source link

ACML support problem #4

Open youngikSong opened 3 years ago

youngikSong commented 3 years ago

Dear VFS-Wind developers

While compiling the code, it is written in manual that I have to write my ACML folder location at makefile.local. However, since I don't have ACML, I tried to install ACML from official AMD support website(https://developer.amd.com/tools-and-sdks/cpu-development/amd-core-math-library-acml/), but support for ACML was ended at 2018 and I couldn't access to library. Is there other substitute library to be used instead of ACML? I tried AMD Math Library instead, but it didn't worked.

Best Regards. Song

lmj4930 commented 2 years ago

I meet the same problem! could you please tell me how you solve it?

youngikSong commented 2 years ago

Sorry for being late

Last year, I sent mail to this lab and received some solution; you don't need ACML

I excerpted some part of reply below. Hope this to be useful for you!

use flag below while compiling PETSC library --download-f-blas-lapack=1

there is no need for the -lacml flag (LIBFLAGS). Instead, you must provide the library path to the BLAS and LAPACK libraries and use the flag for the installed libraries

remove -lx11 flag since we don't need X11 for VFS-wind

If PETSC isn't fully installed and show you error, do this

  1. Move to the PETSC library path directory (/home/songyi719/source/petsc-3.1-p6/installation_folder/lib)
  2. In that directory, you must have all the library objects you may need to compile. In my case, I have the following: libfblas.a libflapack.a libHYPRE.a libpetsc.a libscalapack.a
  3. Modify the LIBFLAGS variable to include these libraries. For example: LIBFLAGS= -lfblas -flapack -lHYPRE -lpetsc -lscalapack

I had tons of steps of removing error even after this step, so let me know if you experience such things too