Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pycuda/gpuarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def func(self, other):
"be used as arguments to this operation"
)

result = self._new_like_me()
result = self._new_like_me(dtype=bool) # create bool array
func = elementwise.get_binary_op_kernel(
self.dtype, other.dtype, result.dtype, operator
)
Expand All @@ -162,7 +162,7 @@ def func(self, other):

return result
else: # scalar operator
result = self._new_like_me()
result = self._new_like_me(dtype=bool)
func = elementwise.get_scalar_op_kernel(self.dtype, result.dtype, operator)
func.prepared_async_call(
self._grid,
Expand Down