Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
M
MPI_ArrayTask
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tammam.alsoleman
MPI_ArrayTask
Commits
3d46557e
Commit
3d46557e
authored
Dec 25, 2025
by
tammam.alsoleman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ADD Test script
parent
82c6984c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
1 deletion
+16
-1
run_tests.ps1
run_tests.ps1
+14
-0
MPI_AVG.java
src/main/java/org/example/MPI_AVG.java
+2
-1
No files found.
run_tests.ps1
0 → 100644
View file @
3d46557e
$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
src/main/java/org/example/MPI_AVG.java
View file @
3d46557e
...
...
@@ -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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment