inducer / inducer/pycuda

`GPUArray.minimum` fails for `bool` arguments

Open
#364 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
2.1k
Forks
298
Avg merge
4m
Merged PRs (30d)
1

Description

Here's an MWE

```python
>>> 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)
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.