Conversation
|
I feel like you might be misunderstanding something here... "binary" operator refers to "having two operands", i.e. "a+b". A unary operator is one with one operand, e.g. "-a". |
|
Sorry, I wasn't precise enough - the function _make_binary_op is used only for comparison operators in gpuarray.py, (<, == , etc.) Shouldn't the output of that operation be a bool array? |
|
Gitlab sister MR for CI: https://gitlab.tiker.net/inducer/pycuda/-/merge_requests/47 |
|
One more question (i dont know if this is the relevant medium): Have you considered implementing GPUArrays for object dtypes? At least for example for subclasses of Enum? |
|
In general, make new issues for separate topics. (Spoiler alert: object arrays aren't happening. They're tied to the Python runtime, which doesn't exist on the GPU. Enums are more likely, but only if you can find a way to map them into the numpy type system.) |
|
Instead of hardcoding a |
|
Sure, I'll make another pull request tomorrow. |
I feel binary operations should make a bool GPUarray, not the same as before.