Newer
Older
# See https://github.com/inducer/pyopencl/issues/498
return cl.version.VERSION > (2021, 2, 5)
if _actx_allows_scalar_broadcast(actx):
quux = foo + actx.from_numpy(np.array(4))
quuz = actx.from_numpy(np.array(4)) + foo
np.testing.assert_allclose(actx.to_numpy(bar.u[0]),
actx.to_numpy(quux.u[0]))
np.testing.assert_allclose(actx.to_numpy(bar.u[0]),
actx.to_numpy(quuz.u[0]))