-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommands.sh
More file actions
21 lines (16 loc) · 1.11 KB
/
commands.sh
File metadata and controls
21 lines (16 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
for name in cosf.cpp.o fast_cosf.cpp.o; do
rm output.bc $name
/dev/shm/rydahl1/LLVM/install/bin/llvm-ar x /dev/shm/rydahl1/LLVM/install/lib/x86_64-unknown-linux-gnu/libmgpu.a $name
echo "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
echo "NVPTX"
echo "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
/dev/shm/rydahl1/LLVM/install/bin/clang-offload-packager $name --image=file=output.bc,arch=sm_70
/dev/shm/rydahl1/LLVM/install/bin/llvm-dis output.bc && cat output.ll
echo "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
echo "AMDGPU"
echo "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
/dev/shm/rydahl1/LLVM/install/bin/clang-offload-packager $name --image=file=output.bc,arch=gfx906
/dev/shm/rydahl1/LLVM/install/bin/llvm-dis output.bc && cat output.ll
#/dev/shm/rydahl1/LLVM/install/bin/clang-offload-packager fast_cosf.cpp.o --image=file=output.bc,arch=gfx906
#llvm-dis output.bc && cat output.ll
done