Skip to content

Commit a67ed82

Browse files
committed
Compare properly against 'cuda'
1 parent 8de8862 commit a67ed82

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pygpu/gpuarray.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1588,7 +1588,7 @@ cdef class GpuArray:
15881588
cdef int err
15891589
if cuda_get_ipc_handle is NULL:
15901590
raise SystemError, "Could not get necessary extension"
1591-
if self.context.kind == 'cuda':
1591+
if self.context.kind != b'cuda':
15921592
raise ValueError, "Only works for cuda contexts"
15931593
err = cuda_get_ipc_handle(self.ga.data, &h)
15941594
if err != GA_NO_ERROR:

0 commit comments

Comments
 (0)