ATen
ATen copied to clipboard
Build error
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
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)