Skip to content

Commit cf03092

Browse files
committed
Use explicit int32_t instead of int in integer fused type
Signed-off-by: Kamil Tokarski <ktokarski@nvidia.com>
1 parent edf04e4 commit cf03092

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

cuda_core/cuda/core/experimental/_layout.pxd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
cimport cython
66
from cython.operator cimport dereference as deref
77

8-
from libc.stdint cimport int64_t, uint32_t, uintptr_t
8+
from libc.stdint cimport int64_t, int32_t, uint32_t, uintptr_t
99
from libcpp cimport vector
1010

1111
ctypedef int64_t extent_t
1212
ctypedef int64_t stride_t
13-
ctypedef int axis_t
13+
ctypedef int32_t axis_t
1414

1515
ctypedef uint32_t axes_mask_t # MUST be exactly STRIDED_LAYOUT_MAX_NDIM bits wide
1616
ctypedef uint32_t property_mask_t
@@ -23,7 +23,7 @@ from cuda.core.experimental._utils cimport cuda_utils
2323

2424
ctypedef fused integer_t:
2525
int64_t
26-
int
26+
int32_t
2727

2828

2929
cdef extern from "include/layout.hpp":

cuda_core/cuda/core/experimental/_utils/cuda_utils.pxd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
cimport cpython
66
from cpython.object cimport PyObject
7-
from libc.stdint cimport int64_t
7+
from libc.stdint cimport int64_t, int32_t
88

99
from cuda.bindings cimport cydriver
1010

@@ -15,7 +15,7 @@ ctypedef fused supported_error_type:
1515

1616
ctypedef fused integer_t:
1717
int64_t
18-
int
18+
int32_t
1919

2020

2121
# mimic CU_DEVICE_INVALID

0 commit comments

Comments
 (0)