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

Compatibility with newer versions of cuda #12

Open
jorpilo opened this issue Nov 25, 2018 · 2 comments
Open

Compatibility with newer versions of cuda #12

jorpilo opened this issue Nov 25, 2018 · 2 comments

Comments

@jorpilo
Copy link

jorpilo commented Nov 25, 2018

If we are going to use the old torch version
https://drive.google.com/file/d/0B8yp1gOBCztycW42eDNNaExWSlU/view?usp=sharing
Somepeople may have experienced problems when compiling with newer versions of CUDA as CUDA 9 deprecates arquitecture sm_20.

In order to compile it for newer versions of cuda some adjustements must be done in the files:
torch/extra/cutorch/cmake/FindCudaArch.cmake
torch/extra/cunn/cmake/FindCudaArch.cmake
torch/extra/cunnx/cmake/FindCudaArch.cmake
torch/extra/cucmake/FindCudaArch.cmake

At the begining of the file there is the line:

SET(KNOWN_GPU_ARCHITECTURES "2.0 2.1(2.0) 3.0 3.5 5.0")

if we are going to use CUDA >= 9 we need to remove 2.0 2.1(2.0)

and we need to add our architecture, for gtx sm_61 it would be 6.1

I personally added it in the IF (CUDA_VERSION VERSION_GREATER "6.5") part

@donglixp
Copy link
Owner

@jorpilo

Thanks for the solution!

@jorpilo
Copy link
Author

jorpilo commented Nov 25, 2018

I just created a running nvidia-dockers, I will push to a repository and comment it

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