Page 1 of 1

Using OpenCL

Posted: Tue Jun 21, 2011 6:20 am
by kasra
Hello,

I was wondering how I can tell OpenMM to specifically use OpenCL rather than CIDA?
I know if I want to use CUDA I should use the following command:
getPlatformByName("Cuda")
however I am not sure if I should use the same command and if so what I should use instead of Cuda, and whether I should install OpenCL if I want to use Windows XP 64-bit?
Thanks




RE: Using OpenCL

Posted: Tue Jun 21, 2011 7:56 am
by peastman
Just use getPlatformByName("OpenCL"). The Platform class also has methods for looping over all installed platforms: getNumPlatforms() and getPlatform(). So when in doubt, you can call those to see exactly what the options are.

Peter