Re: Trouble running platform filter
Posted by HenryS on Feb 14, 2017; 4:19pm
URL: https://forum.jogamp.org/Trouble-running-platform-filter-tp4037629p4037632.html
Thanks for your reply. I am running Eclipse and I installed the libraries according the Eclipse IDE User Library instructions. I got the jogamp jocl HelloWorld example which I got up and running. inserted the following statements in the HelloWorls example:
import com.jogamp.opencl.*;
import com.jogamp.opencl.util.*;
CLPlatform platform1 = CLPlatform.getDefault(type (GPU));
CLPlatform platform2 = CLPlatform.getDefault (CLDeviceFilters.type (CLDevice.Type.GPU));
CLPlatform platform3 = CLPlatform.getDefault (Filter<CLDevice> GPU);
The statement with platform1 complains about GPU cannot be resolved to a variable
The statement with platform2: the method getDefaiut (Filter<CLPlatform> ...) in the type CLPlatform is not applicable for the argument (Filter<CLDevice>)
platform3: Filter, CLDevice and GPU cannot be resolved as a variable
The last 2 examples are suggested reading the javadocs. Are these two imports sufficient?