Skip to content

Commit

Permalink
Gpu reset also resets jklQueensMem
Browse files Browse the repository at this point in the history
  • Loading branch information
olepoeschl authored Feb 19, 2024
1 parent c8fef51 commit 5bce312
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/de/nqueensfaf/impl/GpuSolver.java
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ private class Gpu {
private long program;
private long kernel;
private long xQueue, memQueue;
private long constellationsMem, resMem, jklQueensMem;
private long constellationsMem, jklQueensMem, resMem;

private Gpu() {
}
Expand All @@ -517,7 +517,7 @@ private float getBenchmark() {
private void reset() {
duration = 0;
maxNumOfConstellationsPerRun = 0;
context = program = kernel = xQueue = memQueue = constellationsMem = resMem = 0;
context = program = kernel = xQueue = memQueue = constellationsMem = jklQueensMem = resMem = 0;
}

private void createOpenClObjects() {
Expand Down

0 comments on commit 5bce312

Please sign in to comment.