torch / torch7

http://torch.ch
Other
8.98k stars 2.38k forks source link

Problem with CUDA Max OSX 10.14 #1202

Open gustafGitHub opened 5 years ago

gustafGitHub commented 5 years ago

Problem with CUDA, Mac OSX 10.14

I have CUDA version 10.1.105 installed

However, the installer finds an older CUDA version 5.5:

..........

Found CUDA on your machine. Installing CUDA packages Warning: unmatched variable LUALIB

jopts=$(getconf _NPROCESSORS_CONF)

echo "Building on $jopts cores" cmake -E make_directory build && cd build && cmake .. -DLUALIB= -DLUA_INCDIR=/Users/gustafullman/torch/install/include -DCMAKE_CXX_FLAGS=${CMAKE_CXX_FLAGS} -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="/Users/gustafullman/torch/install/bin/.." -DCMAKE_INSTALL_PREFIX="/Users/gustafullman/torch/install/lib/luarocks/rocks/cutorch/scm-1" && make -j$jopts install

Building on 8 cores -- Found Torch7 in /Users/gustafullman/torch/install CMake Error at /usr/local/Cellar/cmake/3.9.6/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:137 (message): Could NOT find CUDA: Found unsuitable version "5.5", but required is at least "6.5" (found /usr/local/cuda) Call Stack (most recent call first): /usr/local/Cellar/cmake/3.9.6/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:375 (_FPHSA_FAILURE_MESSAGE) /Users/gustafullman/torch/install/share/cmake/torch/FindCUDA.cmake:1009 (find_package_handle_standard_args) CMakeLists.txt:7 (FIND_PACKAGE)

-- Configuring incomplete, errors occurred! See also "/Users/gustafullman/torch/extra/cutorch/build/CMakeFiles/CMakeOutput.log".

Error: Build error: Failed building.