[FIX] tornado.opencl.forcegpu now forces OclGpuScheduler to be used
*/
package tornado.drivers.opencl;
+import static tornado.common.Tornado.FORCE_ALL_TO_GPU;
import static tornado.common.Tornado.fatal;
public class OCLScheduler {
public static final OCLKernelScheduler create(final OCLDeviceContext context) {
+ if (FORCE_ALL_TO_GPU) {
+ return new OCLGpuScheduler(context);
+ }
+
if (null != context.getDevice().getDeviceType()) {
switch (context.getDevice().getDeviceType()) {
case CL_DEVICE_TYPE_GPU:
