eth-sri / eran

ETH Robustness Analyzer for Deep Neural Networks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cmake error when compiling GPUPoly

JacksonZyy opened this issue · comments

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!