Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CUDA / OpenCL within a Virtual Machine / Hypervisor [closed]

Anyone know of any virtualisation solutions that either allow CUDA/OpenCL access directly or implement CUDA/OpenCL abstraction.

UPDATE: Thank you those who commented. While classical 'desktop' virtualization would be nice, I suspect the likes of Xen would be closer to the mark.

like image 872
Bolster Avatar asked Mar 14 '11 12:03

Bolster


3 Answers

You can use Xen VGA passthrough to have full access and control over your graphic card inside a VM. You can find more information about this here: http://vfio.blogspot.com/ (look for VFIO GPU How To series parts 1-5).

I did it a few times, it's not very easy to setup, but it gives very good results (almost native). Here is a video of an experimentation I made that shows a dual VGA passthrough using Xen: http://www.youtube.com/watch?v=Gtmwnx-k2qg

I haven't tested OpenCL or CUDA, but I'm pretty sure it would work.

like image 175
alarouche Avatar answered Sep 21 '22 07:09

alarouche


NVIDIA announced GPU virtualization on the new Kepler cards this summer at GTC.

http://www.nvidia.com/object/vgx-boards.html

http://www.gputechconf.com/page/home.html

They not only announced it, they demonstrated it live

like image 26
ccook Avatar answered Sep 21 '22 07:09

ccook


VirtualBox has PCI-passthrough, which allows you to use CUDA or OpenCL inside a Virtual Machine.

like image 42
Maestro Avatar answered Sep 20 '22 07:09

Maestro