Advertisement
fwinter

Makefile

Jan 23rd, 2021
290
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. CXX=hipcc
  2.  
  3. LLVM=/opt/rocm/llvm/
  4.  
  5.  
  6.  
  7. read_launch: read_launch.cc
  8. hipcc read_launch.cc -o read_launch
  9.  
  10. module.o: module.ll
  11. $(LLVM)/bin/clang -c -target amdgcn-amd-amdhsa -mcpu=gfx1010 $< -o module.o
  12.  
  13. module.so: module.o
  14. $(LLVM)/bin/ld.lld -shared module.o -o module.so
  15.  
  16.  
  17. %.o: %.cc
  18. $(CXX) -c $<
  19.  
  20. clean:
  21. rm -f *.o
  22. rm -f read_launch
  23.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement