clab / clab/dynet

Compiling with "non-default" CUDA

Open
#1,373 0 comments 0 reactions 0 assignees View on GitHub
moderate bug
Dominant language
C++
Stars
3.4k
Forks
701
PR merge metrics
No merged PRs in 30d

Description

Hi,

when I specify a custom CUDA path when building, eg. `-DCUDNN_ROOT=/usr/local/cuda-8.0/`, the compilation toolchain still use parts which comes from the default CUDA version installed at `/usr/local/cuda/` (on my cluster).

Thus, when compiling, I got the following error:
`nvcc fatal : Value 'sm_61' is not defined for option 'gpu-architecture'`
because CUDA 7.5 does not support this architecture (which is the CUDA version installed at `/usr/local/cuda/`)

To fix this, I had to modify the PATH env. variables:
`export PATH=usr/local/cuda-8.0/:$PATH`

It would be nice if this workaround was not necessary.

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the build with CUDNN_ROOT set to /usr/local/cuda-8.0/ while another CUDA version is at /usr/local/cuda/. Inspect how the compilation toolchain selects CUDA paths and confirm that the requested version is used consistently, so sm_61 compiles without changing PATH.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.