GPUs are not virtualized yet... You cannot run OpenCL from a Virtual Machine....
So, the answer to your question is -- No, this is not possible.
Thank you Himanshu,
I got it.
Then if it's not on a virtual machine, if I install both windows and ubuntu on a same laptop, then it's sure that I have to install both the linux version graphic driver and SDK on ubuntu, even though both the graphic driver and SDK already exist on windows. Is this right??
Yes, Windows driver is a software component that will work with Windows OS.
It cannot work with Linux OS
And vice versa.
For Linux, you need to install Linux drivers.
So, Both drivers will have to be used -- one when you are Windows, Other when you are on Linux.
These drivers execute from the CPU and not a part of the graphics card. And they depend on the OS.
Hope this makes it clear,
+ If you are planning Ubuntu 12.04, Try the Wubi installer. It can install Linux -- just like how you will install a windows application.
You just need the Linux ISO file. The Linux root filesystem will be available as a file under Windows. When you reboot, you will have 2 options to boot from and thats all. You are on Linux.
Thank you so much