GithubHelp home page GithubHelp logo

Comments (4)

rliwoch avatar rliwoch commented on June 16, 2024

BTW.
cuda_enabled seems to be doing it's job when the device id is not spoofed. Taking M40 24G as an example, that gets spoofed on the mdev level as a M60 - NVIDIA in their docs says only the 8Q profile is capable of CUDA:
nvidia-wisdom

but with the cuda_enabled flag I was able to happily run CUDA apps on the 2Q profile (providing there's no device spoofing for the guest OS as decribed above).

Also, going back to the guest spoofing - it doesn't matter where it's spoofed - the same behaviour when I spoof the device using your config.toml or that's an override of device id on the KVM level.

EDIT: Goes without saying - I'm happy to test any ideas you might have.

from vgpu_unlock-rs.

mbilker avatar mbilker commented on June 16, 2024

CUDA is not supported when spoofing the PCI device ID. So far, it only works with the GRID guest driver.

from vgpu_unlock-rs.

rliwoch avatar rliwoch commented on June 16, 2024

Have you ever investigated why is that?
I haven't gone through the nvidia's open source kernel modules myself, you must have, so I'm just curious what is so specific about spoofing and cuda

it only works with the GRID guest driver.

Also - that's the thing, I'm not changing the driver in the guest to be the GRID one. I'm using the standard driver, and cuda works when dev id is not spoofed

EDIT: Also OpenCL doesn't fly either - so it's not specific to CUDA API rather it's a compute capabilities thing.

from vgpu_unlock-rs.

mbilker avatar mbilker commented on June 16, 2024

There is some code path done with the GRID guest driver that does not happen when doing PCI-e ID spoofing for some reason.

from vgpu_unlock-rs.

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.