Change device disabled for BlurFilter example
@@ -32,9 +32,7 @@ import javax.swing.JFrame;
import uk.ac.manchester.tornado.api.TaskGraph;
import uk.ac.manchester.tornado.api.annotations.Parallel;
-import uk.ac.manchester.tornado.api.common.TornadoDevice;
import uk.ac.manchester.tornado.api.enums.DataTransferMode;
-import uk.ac.manchester.tornado.api.runtime.TornadoRuntime;
/**
* It applies a Blur filter to an input image. Algorithm taken from CUDA course
@@ -157,8 +155,6 @@ public class BlurFilter {
long start = System.nanoTime();
- TornadoDevice device = TornadoRuntime.getTornadoRuntime().getDriver(0).getDevice(2);
-
TaskGraph parallelFilter = new TaskGraph("blur") //
.transferToDevice(DataTransferMode.FIRST_EXECUTION, redChannel, greenChannel, blueChannel, filter) //
.lockObjectsInMemory(redChannel, greenChannel, blueChannel, redFilter, greenFilter, blueFilter, filter) //
@@ -168,8 +164,6 @@ public class BlurFilter {
.transferToHost(redFilter, greenFilter, blueFilter) //
.useDefaultThreadScheduler(true);
- parallelFilter.mapAllTo(device);
-
parallelFilter.execute();
// now recombine into the output image - Alpha is 255 for no
