Skip to content

Commit 94b4ec9

Browse files
committed
[feat] Replace warmup iterations with pre-compilation to ensure JIT compilation from Java to GPU code
1 parent 3c5c0ab commit 94b4ec9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/example/tornadovm/TornadoVMMasterPlan.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public static TornadoVMMasterPlan initializeTornadoVMPlan(State state, Llama mod
6666
}
6767

6868
// 2. Perform warmup with extra iterations to ensure JIT compilation is complete
69-
tornadoVMPlan.executionPlan.withWarmUp(); // Increased warmup iterations
69+
tornadoVMPlan.executionPlan.withPreCompilation(); // Force JIT compilation from Java to GPU code
7070

7171
// Record time after warmup
7272
if (ENABLE_TORNADOVM_INIT_TIME) {

0 commit comments

Comments
 (0)