GithubHelp home page GithubHelp logo

invalid device function{cm.CUDAMatrix.init_random(42)} cudamat.cudamat.CUDAMatException: CUDA error: no error about unsupervised-videos HOT 10 CLOSED

mansimov avatar mansimov commented on September 24, 2024
invalid device function{cm.CUDAMatrix.init_random(42)} cudamat.cudamat.CUDAMatException: CUDA error: no error

from unsupervised-videos.

Comments (10)

mansimov avatar mansimov commented on September 24, 2024

Something wrong with cuda toolkit version or running out of memory on gpu.

We have only tried running it on cuda version 5.5 & 6.0

from unsupervised-videos.

yzxsunshine avatar yzxsunshine commented on September 24, 2024

Hi, I somehow solved it by adding "-gencode=arch=compute_50,code=sm_50 " in the makefile for cudamat. You can find it when assigning configuration strings to variable FLAG. The problem is caused by the mismatch between your cuda version and the configuration. My cuda7.5 works well after adding that line. Not sure whether it works for cuda 8.

from unsupervised-videos.

mansimov avatar mansimov commented on September 24, 2024

Thanks @yzxsunshine !

from unsupervised-videos.

buaa-luzhi avatar buaa-luzhi commented on September 24, 2024

@yzxsunshine hello, My cuda8.0 encounter this problem.
I have already modify "-gencode=arch=compute_50, code=sm_50 " in the makefile. Still does not solve the problem.
Using board 0
invalid device function
Traceback (most recent call last):
File "lstm_combo.py", line 405, in
cm.CUDAMatrix.init_random(42)
File "/home/weihaoxie/unsupervised-videos/cudamat/cudamat.py", line 382, in init_random
raise generate_exception(err_code)
cudamat.cudamat.CUDAMatException: CUDA error: no error
Do you know how to solve this problem.
Thank you very much!

from unsupervised-videos.

bottlecapper avatar bottlecapper commented on September 24, 2024

@emansim I come across the same problem! My cuda is 8.0
Using board 0
invalid device function
Traceback (most recent call last):
File "/media/jg/D/Dropbox/JianTembine/Coding/Python/videoLSTM/lstm_combo.py", line 405, in
cm.CUDAMatrix.init_random(42)
File "/media/jg/D/Dropbox/JianTembine/Coding/Python/videoLSTM/cudamat/cudamat.py", line 382, in init_random
raise generate_exception(err_code)
cudamat.cudamat.CUDAMatException: CUDA error: no error
Process finished with exit code 1

Do you know how to fix it?

from unsupervised-videos.

buaa-luzhi avatar buaa-luzhi commented on September 24, 2024

@bottlecapper sorry, I do not konw, maybe the version of cuda 8.0 is not suitable. I haven't changed cuda yet. if you have some solutions, please tell me , Thank you very much!

from unsupervised-videos.

liaocs2008 avatar liaocs2008 commented on September 24, 2024

@buaa-luzhi Probably you have a nice GPU card requiring higher SM architecture. You may want to look for a suitable compilation setting. In general, here is an example to achieve maximum compatibility for CUDA 8.

-gencode=arch=compute_20,code=sm_20 \
-gencode=arch=compute_30,code=sm_30 \
-gencode=arch=compute_50,code=sm_50 \
-gencode=arch=compute_52,code=sm_52 \
-gencode=arch=compute_52,code=compute_52 \
-gencode=arch=compute_60,code=sm_60 \
-gencode=arch=compute_61,code=sm_61 \
-gencode=arch=compute_62,code=sm_62 \

from unsupervised-videos.

abhinavkashyap92 avatar abhinavkashyap92 commented on September 24, 2024

@liaocs2008 This one did the trick for me. For anyone using CUDA-8 use this (see whether the SM architecture that you specify in the makefile is compatible with the device that you have)

from unsupervised-videos.

jianghaojun avatar jianghaojun commented on September 24, 2024

@buaa-luzhi
I had the same problem! My cuda is 8.0.
I solved the problem by modifying below in the Makefile.
Thank you so much. @liaocs2008

-gencode=arch=compute_20,code=sm_20
-gencode=arch=compute_30,code=sm_30
-gencode=arch=compute_35,code=sm_35
-gencode=arch=compute_50,code=sm_50
-gencode=arch=compute_52,code=sm_52
-gencode=arch=compute_60,code=sm_60
-gencode=arch=compute_61,code=sm_61
-gencode=arch=compute_62,code=sm_62

from unsupervised-videos.

DavidSUN2 avatar DavidSUN2 commented on September 24, 2024

@buaa-luzhi have you solved this problem? I also modified Makefile, din't work. I used CUDA6.5. My Nvidia driver is Quadro FX 4800 whose computation capacity is 1.3. So, I add
-gencode=arch=compute_13,code=sm_13. The error still occurred.

@abhinavkashyap92 How to tell whether the SM architecture that I specify in the makefile is compatible with the device that I have? Thanks.

from unsupervised-videos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.