find rocgdb in rocm build if AOMP set to ROCM/llvm
@@ -15,7 +15,11 @@ CC = $(OMP_BIN) $(VERBOSE)
include ../Makefile.rules
AOMPROCM ?= $(AOMP)
+ifneq (,$(wildcard $(AOMPROCM)/bin/rocgdb))
RUNPROF = $(AOMPROCM)/bin/rocgdb
+else
+RUNPROF = $(AOMPROCM)/../bin/rocgdb
+endif
ARGS = -x cmd_script -q
run:
