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);
OCLEvent.waitFor(event);
- OCLUtils.printEventStats("simulate", event);
if (! isBatchModeEnabled()) {
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");
}
}