Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GPUArray.minimum fails for bool arguments #364

Open
mitkotak opened this issue Jul 27, 2022 · 1 comment
Open

GPUArray.minimum fails for bool arguments #364

mitkotak opened this issue Jul 27, 2022 · 1 comment
Labels

Comments

@mitkotak
Copy link
Contributor

mitkotak commented Jul 27, 2022

Here's an MWE

>>> import numpy as np
>>> import pycuda.autoinit
>>> import pycuda.gpuarray as gpuarray
>>> a = np.array(True)
>>> b = np.array(False)
>>> a_gpu = gpuarray.to_gpu(a)
>>> b_gpu = gpuarray.to_gpu(b)
>>> result_np = np.minimum(a, b)
>>> print(result_np)
>>> gpuarray.minimum(a_gpu, b_gpu)
@mitkotak mitkotak added the bug label Jul 27, 2022
@kaushikcfd
Copy link
Contributor

There's a proposed fix for this at https://gitlab.tiker.net/inducer/pycuda/-/merge_requests/73.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants