This repository was archived by the owner on Mar 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 41
Added hybrid MPI+OpenMP test in CI #299
Draft
iomaganaris
wants to merge
11
commits into
master
Choose a base branch
from
ci/nrntraub
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 9 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
f382ce4
Added nrntraub test
iomaganaris 51c79c5
Fixed checking out nrntraub
iomaganaris a7098b6
Fixed nrnivmodl stage of nrntraub
iomaganaris f9143ce
Avoid doing an exclusive allocation
iomaganaris e34f520
Run nrntraub with corenrn SoA and openmp and AoS pure MPI
iomaganaris 86343c7
Added --voltage 1000 in corenrn to get same results
iomaganaris e591d01
Fix SoA nrnrtraub run
iomaganaris 77f6357
Run neuron test only once
iomaganaris 8cedc1c
Set proper number of threads and ranks to run SoA and AoS builds
iomaganaris cd8a0fa
Changed nrntraub repo and coreneuron command for nrntraub
iomaganaris 2c25e34
Fixed execution with threads and added CORENEURONLIB
iomaganaris File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
|
||
bb5_run() ( | ||
set +x -e | ||
# default partition is interactive. during night use production | ||
hour=`date +%H` | ||
weekday=`date +%u` | ||
if [ "$hour" -ge "19" ] || [ "$hour" -lt "8" ] || [ $weekday -gt 5 ]; then export SALLOC_PARTITION="prod"; fi | ||
|
||
N=${N:-1} | ||
if [ -n "$n" ]; then | ||
SALLOC_OPTS="$SALLOC_OPTS --ntasks-per-node=$n" | ||
else | ||
SALLOC_OPTS="$SALLOC_OPTS --ntasks-per-node=36" | ||
fi | ||
|
||
cmd_base="time salloc -N$N $SALLOC_OPTS -Aproj16 --hint=compute_bound -Ccpu|nvme --time 1:00:00 srun dplace " | ||
echo "$cmd_base $@" | ||
$cmd_base "$@" | ||
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/bash | ||
|
||
set -e | ||
source ${JENKINS_DIR:-.}/_env_setup.sh | ||
source ${JENKINS_DIR:-.}/_test_utils.sh | ||
|
||
set -x | ||
|
||
CORENRN_TYPE="$1" | ||
MPI_RANKS="$2" | ||
THREADS="$3" | ||
|
||
cd $WORKSPACE/nrntraub | ||
|
||
# Allocate 1 node | ||
N=1 | ||
|
||
export OMP_NUM_THREADS=${THREADS} | ||
|
||
n=${MPI_RANKS} bb5_run ./${CORENRN_TYPE}/special-core --mpi -d coredat --voltage=1000 | ||
|
||
sort -n -k'1,1' -k2 < out.dat | awk 'NR==1 { print; next } { printf "%.3f\t%d\n", $1, $2 }' > out_cn_${CORENRN_TYPE}.sorted | ||
|
||
sdiff -s out_cn_${CORENRN_TYPE}.sorted out_nrn.sorted |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.