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

Build error #201

Open
binh-vu opened this issue Mar 10, 2018 · 1 comment
Open

Build error #201

binh-vu opened this issue Mar 10, 2018 · 1 comment

Comments

@binh-vu
Copy link

binh-vu commented Mar 10, 2018

My machine has cuda install at: /usr/local/cuda; it's fine when I build with cuda. However, if I don't want to build it with cuda

cmake .. -DNO_CUDA=1

I get following errors:

[ 74%] Building CXX object src/ATen/test/CMakeFiles/cudnn_test.dir/cudnn_test.cpp.o
In file included from /home/rook/ATen2/src/ATen/cudnn/cudnn-wrapper.h:3:0,
                 from /home/rook/ATen2/src/ATen/cudnn/Exceptions.h:3,
                 from /home/rook/ATen2/src/ATen/cudnn/Descriptors.h:3,
                 from /home/rook/ATen2/src/ATen/test/cudnn_test.cpp:2:
/usr/include/cudnn.h:63:26: fatal error: driver_types.h: No such file or directory
compilation terminated.

Because of this

if(NOT NO_CUDA)
  cuda_add_executable(integer_divider_test integer_divider_test.cu)
  target_link_libraries(integer_divider_test ATen)

endif()

if (CUDNN_FOUND)
  add_executable(cudnn_test cudnn_test.cpp)
  target_link_libraries(cudnn_test ATen)
endif()

in src/ATen/test/CMakeLists.txt

@pharrellyhy
Copy link

pharrellyhy commented Jun 15, 2018

Hi, can you list the commands for building with CUDA? I followed the installation guide but failed. Here is the error message I got. I don't have caffe2 installed on my machine by the way.

CMake Error at /home/pharrell/codebase/github/ATen/cmake/public/utils.cmake:5 (set): set given invalid arguments for CACHE mode. Call Stack (most recent call first): /home/pharrell/codebase/github/ATen/cmake/Dependencies.cmake:410 (caffe2_update_option) CMakeLists.txt:78 (include)

CMake Error at /home/pharrell/codebase/github/ATen/cmake/public/utils.cmake:5 (set): set given invalid arguments for CACHE mode. Call Stack (most recent call first): /home/pharrell/codebase/github/ATen/cmake/Dependencies.cmake:427 (caffe2_update_option) CMakeLists.txt:78 (include)

CMake Error: File /home/pharrell/codebase/github/ATen/cmake/../caffe2/core/macros.h.in does not exist. CMake Error at /home/pharrell/codebase/github/ATen/cmake/Codegen.cmake:9 (configure_file): configure_file Problem configuring file Call Stack (most recent call first): src/ATen/CMakeLists.txt:6 (include)

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

2 participants