X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/book_gpu.git/blobdiff_plain/bdec1b5087c2ea922fcf62ad0591b8d784ddf3b7..6e645292c9053655e4e44bbebf1c1eb751a554a6:/BookGPU/Chapters/chapter17/code/mior_launcher.java diff --git a/BookGPU/Chapters/chapter17/code/mior_launcher.java b/BookGPU/Chapters/chapter17/code/mior_launcher.java index 3b648eb..159b88a 100644 --- a/BookGPU/Chapters/chapter17/code/mior_launcher.java +++ b/BookGPU/Chapters/chapter17/code/mior_launcher.java @@ -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"); } }