pratiman-91 / pratiman-91.github.io

Webpages with blogs.
https://pratiman-91.github.io
MIT License
1 stars 0 forks source link

2020/09/01/Installing-WRF-from-scratch-in-an-HPC-using-Intel-Compilers #1

Open utterances-bot opened 3 years ago

utterances-bot commented 3 years ago

Installing WRF from scratch in an HPC using Intel Compilers - Pratiman Homepage

This is Pratiman webpage with some blogs.

https://pratiman-91.github.io/2020/09/01/Installing-WRF-from-scratch-in-an-HPC-using-Intel-Compilers.html

umga commented 3 years ago

That was great. Thank you

ydcoffee0521 commented 2 years ago

First of all, thank you for a kind instruction to install WRF. I struggled with issue that "ungrib.exe" does not appear while I install WPS. When I installed libpng, it was solved. Is it ok without libpng library to install WPS in your case?

pratiman-91 commented 2 years ago

Generally, libpng is installed in a system. That is why I have not included it as one of the dependencies. However, if it is not in the path then you have to install it. Steps to be involved in the workflow should be

wget https://onboardcloud.dl.sourceforge.net/project/libpng/libpng16/1.6.37/libpng-1.6.37.tar.gz
tar xvf libpng-1.6.37.tar.gz
cd libpng-1.6.37/
./configure --prefix=/home/wrf/wrf_libs_intel/ 
make
make install

Thanks for letting me know.

Indiraadil95 commented 2 years ago

Thank you very much for detailed instructions on the WRF installation.

I am trying to install WRF with Intel compilers on Ubuntu 20.04 guest virtual machine ( Windows 10 is the host). I have successfully installed it with gfortran , but the simulations are too slow, therefore I decided to reinstall it with intel compilers.

Before following the instructions mentioned here I installed Intel oneAPI compilers for Ubuntu , following the instructions mentioned in https://neelravi.com/post/intel-oneapi-install/ . Unfortunately, my installation process stops at netCDF, I cannot configure it. The following lines appear in the terminal:

checking whether the C compiler works... no configure: error: in /home/indira3/wrf_install_intel/netcdf-c-4.7.4': configure: error: C compiler cannot create executables Seeconfig.log' for more details

Config.log does not have any details. Also, I cannot access bashrc file anymore.

Could you please give me advise on how to resolve this issue?

Thank you !

ydcoffee0521 commented 2 years ago

when you follow this part

export LD_LIBRARY_PATH=/home/wrf/wrf_libs_intel/lib export LDFLAGS=-L/home/wrf/wrf_libs_intel/lib export CPPFLAGS=-I/home/wrf/wrf_libs_intel/include original LD_LIBRARY_PATH is replaced which only contains path to wrf libs.

I think reason that you can't access bashrc file is this problem. ( no path information for vim or nano ) I suggest you exit your current terminal with "Ctrl+D" and open new terminal again. Try again whole procedure with "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/wrf/wrf_libs_intel/lib" instead of original command.

Indiraadil95 commented 2 years ago

Thank you very much for your reply. I will try to do it.

pratiman-91 commented 2 years ago

Currently, this installation process only support classic Intel compilers. If you want to use oneAPI compilers then you might have to skip the initial steps of setting up the environment.

export CC=icc
export FC=ifort
export F90=ifort
export CXX=icpc

This step is specific to classic version of Intel compilers, in the oneAPI, these environmental parameters are changes to something else. I think simply initializing the compilers should do the job.

Also, it is my understanding that oneAPI only provides for C/C++ compilers and it still uses classic compilers for Fortran.

@ydcoffee0521 Thank you for pointing out the library paths.

Indiraadil95 commented 2 years ago

Thank you for the information. I tried to set up the environment without oneAPI, using

export CC=icc export FC=ifort export F90=ifort export CXX=icpc

However, I cannot configure zlib, I cannot configure any library. I am thinking may be I don't have even classic Intel compilers.

Overall, with oneAPI and without it my installation process stops whether at the installation of zlib, or at libpng.

pratiman-91 commented 2 years ago

Are you using the classic intel C/C++ and Fortran compilers? If yes, then can you share the details using

Indiraadil95 commented 2 years ago

I don't have Intel Fortran compiler and intel C/C++ compilers. Probably that is the cause of the installation problems. Thank you very much for the information. I will try to install these compilers first and start installation of the WRF following the instructions mentioned here.

Thank you!

surgus commented 11 months ago

Maybe some update for newest netcdf and WRF?

setarehrahimi commented 11 months ago

Hi every one, I am training to install WRF-CHEM version 4.2.1 on HPC. I follow these steps:

export CC=icc export FC=ifort export F90=ifort export CXX=icpc


mkdir wrf_install_intel cd wrf_install_intel/ wget https://zlib.net/zlib-1.2.11.tar.gz

tar xvf zlib-1.2.11.tar.gz cd zlib-1.2.11/

./configure --prefix=/home/wrf/wrf_libs_intel/ make make install


wget https://onboardcloud.dl.sourceforge.net/project/libpng/libpng16/1.6.37/libpng-1.6.37.tar.gz

tar xvf libpng-1.6.37.tar.gz cd libpng-1.6.37/

./configure --prefix=/home/wrf/wrf_libs_intel/ make Once executing "make" command for libpng I received below warnings and error :

ld: warning: libimf.so, needed by ./.libs/libpng16.so, not found (try using -rpath or -rpath-link) ld: warning: libsvml.so, needed by ./.libs/libpng16.so, not found (try using -rpath or -rpath-link) ld: warning: libirng.so, needed by ./.libs/libpng16.so, not found (try using -rpath or -rpath-link) ld: warning: libintlc.so.5, needed by ./.libs/libpng16.so, not found (try using -rpath or -rpath-link) contrib/tools/pngfix.o: In function zlib_reset': /backup3/seti/setii/s/src/wrf_install_intel/libpng-1.6.37/contrib/tools/pngfix.c:2184: undefined reference toinflateReset2' ld: .libs/pngfix: hidden symbol `__intel_cpu_features_init_x' in /opt/intel/compilers_and_libraries_2019.4.243/linux/compiler/lib/intel64_lin/libirc.a(cpu_feature_disp.o) is referenced by DSO


so would you please kindly help me to remove this error? any suggestion is strongly appreciated. Best wishes,

numtas commented 3 days ago

That was VERY helpful. Thank you so much.