]> AND Private Git Repository - book_gpu.git/blobdiff - BookGPU/Chapters/chapter17/code/mior_launcher.java
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
correct ch17
[book_gpu.git] / BookGPU / Chapters / chapter17 / code / mior_launcher.java
index 3b648eb075949742229af8e89bb0347d701838ea..159b88ae4b800e37d4a0efca0bcd40e49e1f4dc9 100644 (file)
@@ -3,7 +3,8 @@ protected void doLiveImpl() {
     simulateKernel.setArguments(mmMem, omMem, worldsMem, mmOffsetsMem, omOffsetsMem, mmCSRMem, omCSRMem, partsMem);
 
     if (blockSize < Math.max(nbOM, nbMM)) {
-        throw new RuntimeException("blockSize (" + blockSize + ") too small to execute the simulation");
+        throw new RuntimeException("blockSize (" + blockSize + 
+                               ") too small to execute the simulation");
     }
 
     OCLEvent event = queue.enqueue1DKernel(simulateKernel, nbSim * blockSize, blockSize);
@@ -15,6 +16,5 @@ protected void doLiveImpl() {
         queue.blockingReadBuffer(mmMem, mmList, 0, mmMem.getSize());
         queue.blockingReadBuffer(omMem, omList, 0, omMem.getSize());
         queue.blockingReadBuffer(worldsMem, worlds, 0, worldsMem.getSize());
-        System.out.println("copy");
     }
 }