Skip to content

Commit

Permalink
fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
g1y5x3 committed Dec 17, 2023
1 parent fa9a98b commit a38958c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions generate_cuda.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ clang2py /usr/include/cuda.h /usr/include/nvrtc.h -o gpuctypes/cuda.py -l /usr/l
sed -i "s\import ctypes\import ctypes, ctypes.util\g" gpuctypes/cuda.py
sed -i "s\ctypes.CDLL('/usr/lib/x86_64-linux-gnu/libcuda.so')\ctypes.CDLL(ctypes.util.find_library('cuda'))\g" gpuctypes/cuda.py
sed -i "s\ctypes.CDLL('/usr/lib/x86_64-linux-gnu/libnvrtc.so')\ctypes.CDLL(ctypes.util.find_library('nvrtc'))\g" gpuctypes/cuda.py
echo -e "from gpuctypes.check_cuda import is_cuda_available\nis_cuda_available()\n$(cat gpuctypes/cuda.py)" > gpuctypes/cuda.py
grep FIXME_STUB gpuctypes/cuda.py || true
4 changes: 2 additions & 2 deletions gpuctypes/cuda.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from gpuctypes.check_cuda import is_cuda_available
is_cuda_available()
# -*- coding: utf-8 -*-
#
# TARGET arch is: []
Expand All @@ -6,8 +8,6 @@
# LONGDOUBLE_SIZE is: 16
#
import ctypes, ctypes.util
from gpuctypes.check_cuda import is_cuda_available
is_cuda_available()

class AsDictMixin:
@classmethod
Expand Down

0 comments on commit a38958c

Please sign in to comment.