NVIDIA / AMGX

Distributed multigrid linear solver library on GPU
468 stars 136 forks source link

CMAKE [Build] error #275

Open xjb714 opened 8 months ago

xjb714 commented 8 months ago

Describe the issue

A clear and concise description of what the issue is.

cmake error

Environment information:

Provide your cmake command line that was used for configuration and it's full output.


1> 工作目录: E:\code\project\AMGX\out\build\x64-Debug 1> [CMake] -- Could NOT find MPI_C (missing: MPI_C_WORKS) 1> [CMake] -- Could NOT find MPI_CXX (missing: MPI_CXX_WORKS) 1> [CMake] -- Could NOT find MPI (missing: MPI_C_FOUND MPI_CXX_FOUND) 1> [CMake] -- Could NOT find OpenMP_C (missing: OpenMP_C_FLAGS OpenMP_C_LIB_NAMES) 1> [CMake] -- Could NOT find OpenMP_CXX (missing: OpenMP_CXX_FLAGS OpenMP_CXX_LIB_NAMES) 1> [CMake] -- Could NOT find OpenMP (missing: OpenMP_C_FOUND OpenMP_CXX_FOUND) 1> [CMake] This is a MPI build:FALSE 1> [CMake] -- Checking if arch 60 is supported... 1> [CMake] -- Checking if arch 70 is supported... 1> [CMake] -- Checking if arch 80 is supported... 1> [CMake] -- Checking if arch 90 is supported... 1> [CMake] -- Configuring done 1> [CMake] CMake Error at src/CMakeLists.txt:112 (target_link_libraries): 1> [CMake] Target "amgx_tests_launcher" links to: 1> [CMake] 1> [CMake] OpenMP::OpenMP_C 1> [CMake] 1> [CMake] but the target was not found. Possible reasons include: 1> [CMake] 1> [CMake] There is a typo in the target name. 1> [CMake] A find_package call is missing for an IMPORTED target. 1> [CMake] * An ALIAS target is missing. 1> [CMake] 1> [CMake] 1> [CMake] 1> [CMake] -- Generating done 1> [CMake] CMake Generate step failed. Build files cannot be regenerated correctly.

Compilation information

Provide your make command

Issue information

Provide any error messages from your CMake or compiler. It will also greatly help to attach output of make command rerun with VERBOSE=1 to see exact host compiler launch command that issues the error.

Additional context

Add any other context about the problem here.

NBickford-NV commented 8 months ago

Hi @xjb714 ! I think I might have fixed this in https://github.com/NVIDIA/AMGX/commit/f280993e5df32701fb28c2636f49eea4bc5753a4 - could you pull the latest version and see whether it works for you? Thanks!

marsaev commented 1 week ago

@xjb714 let us know if you still have the issues, thanks!