Slashdot Mirror


Ask Slashdot: Can Linux Run a GPU-Computing Application Written For Windows?

dryriver writes: I have been told that Linux can run Windows software using Wine or perhaps a VM. What happens if that Windows software is a GPU-computing application -- accessing the GPU through HLSL/GLSL/CUDA/OpenCL or similar interfaces? Can Wine or other solutions run that software at a decent speed under Linux? Or is GPU-computing software written for the Windows platform unsuitable for use -- emulated or otherwise -- under Linux? This sounds like one of those cases where there's a theoretical answer and then your own real-world experiences. So leave your best answers in the comments. Can Linux run a GPU-computing application that's written for Windows?

3 of 117 comments (clear)

  1. Maybe by JustAnotherOldGuy · · Score: 2, Insightful

    Maybe.

    --
    Just cruising through this digital world at 33 1/3 rpm...
  2. Who cares by Billly+Gates · · Score: 3, Insightful

    Run Windows. I never have used wine. Linus himself said if you need to run win32 then run host OS. Linus used XP for PowerPoint.

    How would you feel if I asked you if I could run Ubuntu on Windows 10? I could but why? It's a geek toy. At work your job is to put ideology aside and to make your bosses happy by keeping it up.

    Will running Windows Server really be that horrible for 1 server?

    But if I did have to run Linux I could try KMS with GPU pass thru but you risk downsides on now 2 platforms and bugs for now KMs, Linux, and windows and a performance hit. That won't guarantee higher uptime.

  3. Re: no by saloomy · · Score: 4, Insightful

    You can absolutely run it if a VM is an accepted solution. The things you have to do:
    1. Use a processor that supports virtualization
    2. Have a second GPU for the host (in a server, usually the Melanox GPU).
    3. Use a hypervisor that can pass through PCI ports and pass in the nVidia Cuda enabled GPU (like an nVidia Tesla M60 card)
    4. Run your application in the VM

    The real question is: why does the underlying system have to be Linux? Do you want to Hypervise it for HA? Without knowing the why's behind your request, it's hard to say whether you can or not. Is it absolutely possible? Yes. Is it the best approach? Maybe. Is it the most efficient approach for your high-spec'd application? Probably not.