-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
59 additions
and
33 deletions.
There are no files selected for viewing
8 changes: 6 additions & 2 deletions
8
bifacial_radiance/HPCScripts/BasicSimulations/addNewModule.py
This file contains 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
29 changes: 0 additions & 29 deletions
29
bifacial_radiance/HPCScripts/BasicSimulations/dask_template.sbatch
This file was deleted.
Oops, something went wrong.
51 changes: 51 additions & 0 deletions
51
bifacial_radiance/HPCScripts/BasicSimulations/run_sbatch.sbatch
This file contains 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,51 @@ | ||
#!/usr/bin/bash | ||
|
||
#SBATCH --job-name="demo_run" | ||
#SBATCH --nodes=2 | ||
#SBATCH --ntasks-per-node=36 | ||
#SBATCH --time=15 | ||
#SBATCH --export=ALL | ||
#SBATCH --account=pvsoiling | ||
# --partition=debug | ||
#SBATCH --mail-type=ALL | ||
#SBATCH --mail-user=silvana.ovaitt@nrel.gov | ||
|
||
# Save info | ||
python3 /home/sayala/BasicSimulations/addNewModule.py | ||
|
||
#----------------------- | ||
export BASE=/scratch/$USER | ||
mkdir -p $BASE/$SLURM_JOB_ID | ||
cd $BASE/$SLURM_JOB_ID | ||
# Record starting time | ||
date | ||
|
||
# Save info | ||
cat $0 > $SLURM_JOB_ID.script | ||
printenv > $SLURM_JOB_ID.env | ||
cp /home/sayala/BasicSimulations/simulate_tracking_gendaylit.py . | ||
|
||
# Start up dask scheduler | ||
dask-scheduler --interface ib0 \ | ||
--scheduler-file=/scratch/sayala/dask_testing/scheduler.json & | ||
|
||
# Wait for scheduler to start | ||
sleep 5 | ||
|
||
# Start up dask worker on all nodes (Note, script is used to also set | ||
# environment variables on all the nodes. If these were set by default | ||
# (using bash_profile for example), the commented command below could | ||
# be used to start up workers. | ||
srun /home/sayala/BasicSimulations/dask_on_node.sh & | ||
|
||
mkdir RUNS | ||
cd RUNS | ||
|
||
# Wait for workers to start | ||
sleep 5 | ||
|
||
# Run script to submit tasks | ||
python3 /home/sayala/BasicSimulations/simulate_tracking_gendaylit.py | ||
|
||
# Record ending time | ||
date |
This file contains 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 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