Commit 3d46557e authored by tammam.alsoleman's avatar tammam.alsoleman

ADD Test script

parent 82c6984c
$MPJ_RUN = "C:\mpj-v0_44\bin\mpjrun.bat"
$PROCS = @(1, 2, 4, 8 , 12)
Write-Host "`n--- Running Final Benchmarks ---" -ForegroundColor Cyan
cd src/main/java
foreach ($np in $PROCS) {
$out = & $MPJ_RUN -np $np org.example.MPI_AVG | Select-String "TIME_RESULT"
if ($out) {
Write-Host "Output for NP=$np : " -NoNewline
Write-Host $out.ToString().Split("|")[2] -ForegroundColor Green
}
}
cd ../../../
\ No newline at end of file
......@@ -85,7 +85,8 @@ public class MPI_AVG {
if (rank == 0) {
double duration = (endTime - startTime) / 1_000_000.0;
System.out.println("Execution Time for " + size + " processes: " + duration + " ms");
// The script will look for this specific line format
System.out.println("TIME_RESULT|" + size + "|" + duration + " ms");
}
MPI.Finalize();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment