-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The library can not be found when I compile OP2 #227
Comments
Could you post the list of environment variables you are setting? They will need to point to directories with the The build logic will try to build and link test executables with the given flags, which could also fail if the compiled libraries were produced using an incompatible compiler. You can check why the compile test is failing by removing the redirection of |
Dear Buddy, all the libraries are compiled using GNU compiler. If I config C_INCLUDE_PATH, CPLUS_INCLUDE_PATH, the libraries can be linked in right way. It's weird. And I also noticed some variables like HAVE_CUDA, CUDA_LIB... My environment variables configuration is following: export OP2_INSTALL_PATH=/home/lijian/DSL/OP2-Common/op2/ #External libraries #NVIDIA CUDA ###set mpich-3.3 or openmpi-3.1 |
Strange, would expect that to work. For PT-Scotch it should be |
I correct PTSCOTCH_INSTALL_PATH and update my git repo. Then I run make MAKE_DETECT_DEBUG=1 SHELL='bash -x' detect include pathexport C_INCLUDE_PATH=$CUDA_INSTALL_PATH/include:$MPI_INSTALL_PATH/include:$HDF5_PAR_INSTALL_PATH/include:$PTSCOTCH_INSTALL_PATH/include:$CPLUS_INCLUDE_PATH library pathexport HAVE_CUDA=true |
Dear Sir:
The code structure of OP2, especially the compiling bash, has been reorganized. After I set all the environment variables include compiler, third-party libraries, then run "make detect" in op2. The problem happened like this: I'm sure I have set ENV. variables correctedly. Another environment variables should I config? I use Ubuntu 18.04 OS.
Compilers:
. C: gcc
. C++: g++
. CUDA: /usr/local/cuda/bin/nvcc
. Fortran: gfortran
MPI compilers:
. C: /mnt/lijian/3rd-library-install/mpich-3.3/bin/mpicc
. C++: /mnt/lijian/3rd-library-install/mpich-3.3/bin/mpicxx
. Fortran: /mnt/lijian/3rd-library-install/mpich-3.3/bin/mpif90
CUDA libraries: not found
HDF5 I/O:
. Sequential: not found
. Parallel: not found
MPI partitioners:
. PT-Scotch: not found
. ParMETIS: not found
Compilation flags:
. C: -std=c99 -MMD -MP -Wall -Wextra -pedantic -O3 -DOMPI_SKIP_MPICXX -DMPICH_IGNORE_CXX_SEEK -DMPIPP_H
. C++: -MMD -MP -Wall -Wextra -pedantic -O3 -DOMPI_SKIP_MPICXX -DMPICH_IGNORE_CXX_SEEK -DMPIPP_H
. CUDA: -gencode arch=compute_60,code=sm_60 -m64 -Xptxas=-v -O3 -use_fast_math
. Fortran: -Wall -pedantic -ffixed-line-length-none -ffree-line-length-none -fcray-pointer
The text was updated successfully, but these errors were encountered: