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 error when compiling GPUPoly #112

Open
JacksonZyy opened this issue May 5, 2022 · 0 comments
Open

Cmake error when compiling GPUPoly #112

JacksonZyy opened this issue May 5, 2022 · 0 comments

Comments

@JacksonZyy
Copy link

Hi,

I am trying to use your GPUPoly and had some problems during compilation with ./configure -use-cuda -use-deeppoly -use-gurobi -use-fconv

binary cmake: found in /usr/local/bin
Configuring GPUPoly (using CMake)
-- The CUDA compiler identification is NVIDIA 11.2.152
CMake Error at /usr/local/share/cmake-3.22/Modules/CMakeDetermineCUDACompiler.cmake:598 (message):
  Failed to find a working CUDA architecture.
Call Stack (most recent call first):
  CMakeLists.txt:27 (project)

The line 25-31 in CMakeLists.txt are (line 26 is self-added to solve another compilation issue)

25: cmake_minimum_required (VERSION 3.18.6)
26: set(CMAKE_CUDA_COMPILER /usr/local/cuda/bin/nvcc)
27: project ("GPUPoly" VERSION 0.13.0 LANGUAGES CXX CUDA)
28: set(CMAKE_CXX_STANDARD 17)
29: set(CMAKE_CXX_STANDARD_REQUIRED True)
30: set(CMAKE_CUDA_STANDARD 17)
31: set(CMAKE_CUDA_STANDARD_REQUIRED True)

Related infos:
--- system: Ubuntu 20.04
---cmake version: 3.22.2
---CUDA: 11.2
Could you please advise where went wrong? I couldn't really find useful solutions online.
Thank you so much!

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

No branches or pull requests

1 participant