Skip to content

Commit 46e297b

Browse files
committed
add -g
1 parent d2de598 commit 46e297b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

dynamic_loading/compileme

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ set -x
44

55
HIPCC=/opt/rocm/hip/bin/hipcc
66

7-
$HIPCC sl0.cpp -fno-gpu-rdc -fPIC --shared -o libsl0.so
8-
$HIPCC sl1.cpp -fno-gpu-rdc -fPIC --shared -o libsl1.so
7+
$HIPCC -g sl0.cpp -fno-gpu-rdc -fPIC --shared -o libsl0.so
8+
$HIPCC -g sl1.cpp -fno-gpu-rdc -fPIC --shared -o libsl1.so
99

10-
$HIPCC run.cpp -DLINK_DEP -lsl1 -lsl0 -L . -o run.linked
10+
$HIPCC -g run.cpp -DLINK_DEP -lsl1 -lsl0 -L . -o run.linked
1111

12-
$HIPCC run.cpp -DDLOPEN -o run.dlopen
12+
$HIPCC -g run.cpp -DDLOPEN -o run.dlopen
1313

1414

0 commit comments

Comments
 (0)