Skip to content

Commit

Permalink
fix cuda-gdb if/elif bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lee218llnl committed Mar 11, 2021
1 parent 1b23cbc commit 445537f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/stat_cuda_gdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def new_gdb_instance(pid, gdb_type='gdb'):
try:
if 'cuda-gdb' in os.environ['STAT_GDB']:
gdb = CudaGdbDriver(pid, 'error', 'stderr')
if 'rocgdb' in os.environ['STAT_GDB']:
elif 'rocgdb' in os.environ['STAT_GDB']:
gdb = RocGdbDriver(pid, 'error', 'stderr')
else:
gdb = GdbDriver(pid, 'error', 'stderr')
Expand Down

0 comments on commit 445537f

Please sign in to comment.