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

About cuda version #9

Open
fu123456 opened this issue Apr 28, 2020 · 1 comment
Open

About cuda version #9

fu123456 opened this issue Apr 28, 2020 · 1 comment

Comments

@fu123456
Copy link

Hi, I tried to install distro, but it outputs errors


- Found Torch7 in /mnt/data2/GF/dependences_softwares/distro/install
CMake Error at /usr/local/share/cmake-3.2/Modules/FindPackageHandleStandardArgs.cmake:138 (message):
  Could NOT find CUDA: Found unsuitable version "7.5", but required is at
  least "8.0" (found /usr)
Call Stack (most recent call first):
  /usr/local/share/cmake-3.2/Modules/FindPackageHandleStandardArgs.cmake:372 (_FPHSA_FAILURE_MESSAGE)
  /mnt/data2/GF/dependences_softwares/distro/install/share/cmake/torch/FindCUDA.cmake:1011 (find_package_handle_standard_args)
  CMakeLists.txt:14 (FIND_PACKAGE)

However, in my .bashrc, I have set my cuda

export PATH=$PATH:/usr/local/cuda-10.0/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-10.0/lib64:/usr/local/cuda-10.0/lib
export CUDA_HOME=$CUDA_HOME:/usr/local/cuda-10.0  # "/usr/local/cuda-10.0:$CUDA_HOME"

I am sure that I have installed cuda 10. So why? Can you help me solve this problem? Thx.

@nagadomi
Copy link
Owner

nagadomi commented Apr 29, 2020

Try setting CUDA_BIN_PATH. https://cmake.org/cmake/help/latest/module/FindCUDA.html
My .zhsrc look like:

export CUDA_HOME=/usr/local/cuda-10.0
export CUDA_BIN_PATH=$CUDA_HOME/bin # I am not sure $CUDA_HOME/bin or $CUDA_HOME
export PATH=$CUDA/bin:$PATH
export LD_LIBRARY_PATH=$CUDA_HOME/lib64:$LD_LIBRARY_PATH
export C_INCLUDE_PATH=$CUDA_HOME/include:$C_INCLUDE_PATH
export CPLUS_INCLUDE_PATH=$CUDA_HOME/include:/$CPLUS_INCLUDE_PATH

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