Skip to content

Commit

Permalink
cython: use cuda.ccuda.CUstream
Browse files Browse the repository at this point in the history
  • Loading branch information
madsbk committed Aug 12, 2024
1 parent 53833b7 commit d965e66
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions conda/environments/all_cuda-125_arch-aarch64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ dependencies:
- c-compiler
- cmake>=3.26.4,!=3.30.0
- cuda-nvcc
- cuda-profiler-api>=12.0,<13.0a0
- cuda-python>=12.0,<13.0a0
- cuda-version=12.5
- cupy>=12.0.0
Expand Down
1 change: 1 addition & 0 deletions conda/environments/all_cuda-125_arch-x86_64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ dependencies:
- c-compiler
- cmake>=3.26.4,!=3.30.0
- cuda-nvcc
- cuda-profiler-api>=12.0,<13.0a0
- cuda-python>=12.0,<13.0a0
- cuda-version=12.5
- cupy>=12.0.0
Expand Down
3 changes: 3 additions & 0 deletions dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,9 @@ dependencies:
cuda: "12.*"
packages:
- cuda-python>=12.0,<13.0a0
# cuda-python's cython bindings requires cudaProfiler.h,
# which is found in cuda-profiler-api.
- cuda-profiler-api>=12.0,<13.0a0
- matrix: # All CUDA 11 versions
packages:
- cuda-python>=11.7.1,<12.0a0
Expand Down
5 changes: 1 addition & 4 deletions python/kvikio/kvikio/_lib/file_handle.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ from typing import Optional

from posix cimport fcntl

from cuda.ccuda cimport CUstream
from libc.stdint cimport uintptr_t
from libcpp cimport bool
from libcpp.string cimport string
Expand All @@ -27,10 +28,6 @@ from kvikio._lib.future cimport (
from kvikio._lib import defaults


cdef extern from "cuda.h":
ctypedef void* CUstream


cdef extern from "<kvikio/file_handle.hpp>" namespace "kvikio" nogil:
cdef cppclass FileHandle:
FileHandle() except +
Expand Down

0 comments on commit d965e66

Please sign in to comment.