-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
b623e0f
commit 8e61e98
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
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,12 @@ | ||
#!/bin/sh | ||
|
||
#SBATCH --time=00:20:00 | ||
#SBATCH --nodes=1 | ||
#SBATCH -A nuim01 | ||
#SBATCH -p GpuQ | ||
|
||
#SBATCH -o outfile # send stdout to outfile | ||
#SBATCH -e outfile # send stderr to errfile | ||
#SBATCH --job-name python-test-run | ||
|
||
srun /bin/sh ~/singularity/scripts/script_check_stats.sh |
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,17 @@ | ||
# Check number of cores | ||
printf "CPU: $(cat /proc/cpuinfo | grep -m1 "model name" | awk -F': ' '{print $2}')\n" | ||
printf "Number of Cores: $(cat /proc/cpuinfo | grep processor | wc -l)\n\n" | ||
|
||
# Check GPUs | ||
nvidia-smi | ||
printf "\n" | ||
|
||
# CHeck memory | ||
printf "Memory Stats\n" | ||
free -m --human | ||
|
||
# Print environment variables | ||
printf -- "----------------\n\n" | ||
echo "Environment Variables" | ||
env | ||
printf -- "----------------\n\n" |