@@ -81,12 +81,12 @@ def Sgemm( clblasOrder order, clblasTranspose transA, clblasTranspose transB,
81
81
# Simplify python wrapper to only handle 1 queue at this time
82
82
if ( numCommandQueues != 1 ):
83
83
raise IndexError ( " pyblasSgemm( ) requires the number of queues to be 1" )
84
- cdef int pIntQueue = commandQueues.int_ptr
84
+ cdef intptr_t pIntQueue = commandQueues.int_ptr
85
85
cdef cl_command_queue pcqQueue = < cl_command_queue> pIntQueue
86
86
87
87
# This logic does not yet work for numEventsInWaitList > (greater than) 1
88
88
# Need to figure out how python & pyopencl pass lists of objects
89
- cdef int pIntWaitList = 0
89
+ cdef intptr_t pIntWaitList = 0
90
90
cdef cl_event* pWaitList = NULL
91
91
if ( numEventsInWaitList > 0 ):
92
92
if ( numEventsInWaitList < 2 ):
@@ -98,9 +98,9 @@ def Sgemm( clblasOrder order, clblasTranspose transA, clblasTranspose transB,
98
98
# Pyopencl objects contain an int_ptr method to get access to the internally wrapped
99
99
# OpenCL object pointers
100
100
cdef cl_event outEvent = NULL
101
- cdef int matA = A.int_ptr
102
- cdef int matB = B.int_ptr
103
- cdef int matC = C.int_ptr
101
+ cdef intptr_t matA = A.int_ptr
102
+ cdef intptr_t matB = B.int_ptr
103
+ cdef intptr_t matC = C.int_ptr
104
104
105
105
# Transition execution to clBLAS
106
106
cdef clblasStatus result = clblasSgemm( order, transA, transB, M, N, K, alpha, < const cl_mem> matA, offA, lda,
@@ -113,5 +113,5 @@ def Sgemm( clblasOrder order, clblasTranspose transA, clblasTranspose transB,
113
113
114
114
# Create a pyopencl Event object from the event returned from clBLAS and return
115
115
# it to the user
116
- sgemmEvent = pyopencl.Event.from_int_ptr( < int > outEvent )
116
+ sgemmEvent = pyopencl.Event.from_int_ptr( < intptr_t > outEvent )
117
117
return sgemmEvent
0 commit comments