Skip to content
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

CMAKE [Build] error #275

Open
xjb714 opened this issue Oct 26, 2023 · 2 comments
Open

CMAKE [Build] error #275

xjb714 opened this issue Oct 26, 2023 · 2 comments

Comments

@xjb714
Copy link

xjb714 commented Oct 26, 2023

Describe the issue

A clear and concise description of what the issue is.

cmake error

Environment information:

  • OS: [e.g. Windows 11 22h2]
  • Compiler version: [e.g. gcc 12.2.0]
  • CMake version: [e.g. 3.26]
  • CUDA used for AMGX compilation: [e.g. CUDA 12.3.0]
  • MPI version (if applicable): [e.g. MS-MPI v10.1.2]
  • AMGX version or commit hash [e.g. v2.4.0]
  • Any related environment variables information
    Visual Studio 2022
    Configuration 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
Copy link
Contributor

Hi @xjb714 ! I think I might have fixed this in f280993 - could you pull the latest version and see whether it works for you? Thanks!

@marsaev
Copy link
Collaborator

marsaev commented Jul 9, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants