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

cmake modifications break initRandom #12

Closed
invisibleroads opened this issue May 27, 2014 · 2 comments
Closed

cmake modifications break initRandom #12

invisibleroads opened this issue May 27, 2014 · 2 comments

Comments

@invisibleroads
Copy link

@kashif

The following error appears under the following case when running convnet.py.

  • ab2c1fd Fedora 20 64-bit GeForce 610M

src/nvmatrix/nvmatrix.cu(279) : getLastCudaError() CUDA error : initRandom: Kernel execution failed : (8) invalid device function .

But the error does not appear in the following cases:

@kashif
Copy link
Contributor

kashif commented May 27, 2014

@invisibleroads for that you might want to uncomment the CMakeList.txt line and add the compute capability of your card. As far as I remember for 610M it is 2.0 or 2.1?

list(APPEND CUDA_NVCC_FLAGS -gencode arch=compute_20,code=sm_21)

@invisibleroads
Copy link
Author

Aha, I confirm that using the following configuration in CMakeLists.txt results in convnet.py running successfully on GeForce 610M. Thank you so much. You know the answers!

list(APPEND CUDA_NVCC_FLAGS -gencode arch=compute_20,code=sm_20)
#list(APPEND CUDA_NVCC_FLAGS -gencode arch=compute_30,code=sm_30)
#list(APPEND CUDA_NVCC_FLAGS -gencode arch=compute_32,code=sm_32)
#list(APPEND CUDA_NVCC_FLAGS -gencode arch=compute_35,code=sm_35)
#list(APPEND CUDA_NVCC_FLAGS -gencode arch=compute_50,code=sm_50)

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