Using OpenCL

The functionality of OpenMM will (eventually) include everything that one would need to run modern molecular simulation.
POST REPLY
User avatar
Kasra Momeni
Posts: 23
Joined: Sat Nov 14, 2009 12:06 pm

Using OpenCL

Post by Kasra Momeni » Tue Jun 21, 2011 6:20 am

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




User avatar
Peter Eastman
Posts: 2593
Joined: Thu Aug 09, 2007 1:25 pm

RE: Using OpenCL

Post by Peter Eastman » Tue Jun 21, 2011 7:56 am

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

POST REPLY