Coder Social home page Coder Social logo

Comments (2)

tmcdonell avatar tmcdonell commented on July 3, 2024

Although the error provided by CUDA is inscrutable, it is on point: you did not create a device context. Or, put another way, you didn't tell it for which GPU it should return information on available memory. Contexts are associated with a particular device and all operations take place with respect to that context, so you'll need to create one before doing anything.

I've been putting together a basic tutorial on using the driver interface, which you can find as part of the top-level driver module. Hopefully that helps get you up and running, but do let me know if you think it is missing any key steps!

https://github.com/tmcdonell/cuda/blob/master/Foreign/CUDA/Driver.hs

from cuda.

pmlodawski avatar pmlodawski commented on July 3, 2024

Thanks for brief explaination!

from cuda.

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.