Skip to content

Commit

Permalink
ensure using c++
Browse files Browse the repository at this point in the history
  • Loading branch information
leofang committed Jan 10, 2025
1 parent 98e3d78 commit d32a05c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cuda_bindings/tests_cython/test_ccuda.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
# this software. Any use, reproduction, disclosure, or distribution of
# this software and related documentation outside the terms of the EULA
# is strictly prohibited.

# distutils: language=c++

from libc.string cimport (
memset,
memcmp
Expand Down Expand Up @@ -53,4 +56,4 @@ def test_ccuda_memcpy():
err = ccuda.cuMemFree(dptr)
assert(err == 0)
err = ccuda.cuCtxDestroy(ctx)
assert(err == 0)
assert(err == 0)
3 changes: 3 additions & 0 deletions cuda_bindings/tests_cython/test_ccudart.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
# this software. Any use, reproduction, disclosure, or distribution of
# this software and related documentation outside the terms of the EULA
# is strictly prohibited.

# distutils: language=c++

from libc.string cimport (
memset,
memcmp
Expand Down
3 changes: 3 additions & 0 deletions cuda_bindings/tests_cython/test_interoperability_cython.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
# this software. Any use, reproduction, disclosure, or distribution of
# this software and related documentation outside the terms of the EULA
# is strictly prohibited.

# distutils: language=c++

import pytest
import cuda.cuda as cuda
import cuda.cudart as cudart
Expand Down

0 comments on commit d32a05c

Please sign in to comment.