== Energy Measurement Unit=Joules To print before and after you srun commands in the SLURM script. **CM Module** {{{ srun sh -c 'if [ $SLURM_LOCALID == 0 ]; then echo ${SLURM_NODEID}: $(cat /sys/devices/platform/sem/energy_j); fi' }}} **ESB Module** CPU: {{{ srun -n 1 energymeter_client -m -d 4 }}} GPU: {{{ srun -n 1 energymeter_client -m -d 5 }}}