Open
Description
The type<n>
cannot be hinted properly in IDEs.
e.g
import pyopencl as cl
import pyopencl.cltypes
N = 10
HOST_myArray = np.array([cl.cltypes.make_float4(1, 0, 0, 0)] * N, dtype=cl.cltypes.float4)
The make_float4
function and float4
types are not recognized. They are executed, but I think since they are not explicitly declared in cltypes.py
, the ides have a hard time understanding