Skip to content

Commit

Permalink
add cuda support
Browse files Browse the repository at this point in the history
  • Loading branch information
geohot committed Nov 25, 2023
1 parent 7f81684 commit 971a74e
Show file tree
Hide file tree
Showing 4 changed files with 4,858 additions and 31 deletions.
4 changes: 4 additions & 0 deletions README
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Current version is:

* ROCm 5.7.1
* cuda 11.5
2 changes: 2 additions & 0 deletions generate.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
#!/bin/bash
clang2py /opt/rocm/include/hip/hiprtc.h /opt/rocm/include/hip/hip_runtime_api.h /opt/rocm/include/hip/driver_types.h --clang-args="-D__HIP_PLATFORM_AMD__ -I/opt/rocm/include" -o gpuctypes/hip.py -l /opt/rocm/lib/libhiprtc.so -l /opt/rocm/lib/libamdhip64.so
clang2py /usr/include/cuda.h /usr/include/nvrtc.h -o gpuctypes/cuda.py -l /usr/lib/x86_64-linux-gnu/libcuda.so -l /usr/lib/x86_64-linux-gnu/libnvrtc.so
grep FIXME_STUB gpuctypes/*
Loading

0 comments on commit 971a74e

Please sign in to comment.