We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8de8862 commit a67ed82Copy full SHA for a67ed82
1 file changed
pygpu/gpuarray.pyx
@@ -1588,7 +1588,7 @@ cdef class GpuArray:
1588
cdef int err
1589
if cuda_get_ipc_handle is NULL:
1590
raise SystemError, "Could not get necessary extension"
1591
- if self.context.kind == 'cuda':
+ if self.context.kind != b'cuda':
1592
raise ValueError, "Only works for cuda contexts"
1593
err = cuda_get_ipc_handle(self.ga.data, &h)
1594
if err != GA_NO_ERROR:
0 commit comments