ucns3d-team / UCNS3D

Unstructured Compressible Navier Stokes 3D code (UCNS3D)
https://ucns3d.com
GNU General Public License v3.0
244 stars 90 forks source link

/usr/bin/ld: cannot find -lfabric #10

Open airsound opened 4 years ago

airsound commented 4 years ago

When I compile the codes with Ubuntu-gfortran, I have the following problem. Is there any lib I need to install for the compile? The OpenBlas has been installed.

jimenez@jimenez:/work/open_codes/UCNS3D-master/CODE$ make -f Makefile mpif90 -fdefault-real-8 -fdefault-double-8 -fbackslash -fopenmp -ffree-line-length-none -fcray-pointer -Ofast -Wno-lto-type-mismatch -static -I /opt/OpenBLAS/include -o ucns3d_p declarations.o translate.o grid_t.o flow_operations.o memory.o io.o mpi_p.o communications.o riemann.o flux_p.o profile.o init_p.o parts.o bc_p.o matrix.o grid_p.o basis.o gradients.o prestore.o reconstruct_p.o source.o implicit_fluxes.o implicit_time.o flux_pv.o time_p.o der_r.o svd.o local_pt.o main.o libparmetis.a libmetis.a libtecio.a -L/opt/OpenBLAS/lib -lopenblas -lstdc++ /usr/bin/ld: cannot find -lfabric /opt/intel/compilers_and_libraries_2019.5.281/linux/mpi/intel64/lib/release/libmpi.a(lib_libmpi_la-hcoll_rte.o): In function init_module_fns': /localdisk/jenkins/workspace/workspace/ch4-build-linux-2019/impi-ch4-build-linux_build/CONF/impi-ch4-build-linux-release/label/impi-ch4-build-linux-intel64/_buildspace/release/../../src/mpid/common/hcoll/hcoll_rte.c:153: warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /opt/intel/compilers_and_libraries_2019.5.281/linux/mpi/intel64/lib/release/libmpi.a(lib_libmpi_la-simple_pmi.o): In functionPMII_Connect_to_pm': /localdisk/jenkins/workspace/workspace/ch4-build-linux-2019/impi-ch4-build-linux_build/CONF/impi-ch4-build-linux-release/label/impi-ch4-build-linux-intel64/_buildspace/release/../../src/pmi/simple/simple_pmi.c:1081: warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking collect2: error: ld returned 1 exit status Makefile.common:11: recipe for target 'ucns3d_p' failed make: *** [ucns3d_p] Error 1

airsound commented 4 years ago

I changed to intel complier, it works.

SRkumar97 commented 1 year ago

Hello there! I'm new to this code and this Git, I'm currently trying to install the code in my Ubuntu 20.04 system. I'm confused as to whether both Intel MKL Library and openBLAS are needed; or just one of these two is enough?

Further, I have G-Fortran currently (invoked by mpif90) in the system. From your answer, it seems that Intel Parallel Studio Version 17 is what worked.

It would be great if you could provide a walkthrough of the installation process which you had followed.

Thanks, Ramkumar