Skip to content

Instantly share code, notes, and snippets.

@kathoef
Last active October 28, 2024 19:22
Show Gist options
  • Save kathoef/1f321d62a70d1712754b195b6bed0efa to your computer and use it in GitHub Desktop.
Save kathoef/1f321d62a70d1712754b195b6bed0efa to your computer and use it in GitHub Desktop.
GDB debugging

GDB debugging

srun --partition=vector --mem=10000 --time=01:00:00 --gres=ve:4 --ntasks=1 --nodes=1 --job-name=test --pty bash
module purge
module load vector-env/default
module load ncc/4.0.0 vetop/1.0 nlc/2.3.0
export VE_FORT_UFMTENDIAN=big
export VE_TRACEBACK=FULL
export VE_OMP_NUM_THREADS=4
cd $WORK
gdb ocean.exe
...
break ocean.f:140
run
print ageo
ptype j
...
clear ocean.f:140
break ocean.f:45
break runoff.f:42
run
...
print ageo
continue
...
quit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment