Login  Register

Trouble running platform filter

Posted by HenryS on Feb 13, 2017; 8:51pm
URL: https://forum.jogamp.org/Trouble-running-platform-filter-tp4037629.html

Probably some very basic thing but I have trouble running the simple example on https://jogamp.org/deployment/jogamp-next/javadoc/jocl/javadoc/ to filter GPU-only platforms. The line

    CLPlatform platform = CLPlatform.getDefault(type(GPU));

does not compile (GPU does not resolve to a variable). I tried several other variants but I get (other) compiler errors as well. I import the necessary packages (opencl.* and opencl.util.*). Any ideas what I am doing wrong?