Skip to content

Commit

Permalink
Adding check stats script
Browse files Browse the repository at this point in the history
  • Loading branch information
saravanabalagi committed Mar 16, 2020
1 parent b623e0f commit 8e61e98
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
12 changes: 12 additions & 0 deletions sbatch_stats.sh
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
17 changes: 17 additions & 0 deletions script_check_stats.sh
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"

0 comments on commit 8e61e98

Please sign in to comment.