We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d7c733b commit 6804f02Copy full SHA for 6804f02
python/cuda_parallel/cuda/parallel/experimental/struct.py
@@ -59,7 +59,7 @@ def gpu_struct(this: type) -> Type[GpuStruct]:
59
# Set a .dtype attribute on the class that returns the
60
# corresponding numpy structure dtype. This makes it convenient to
61
# create CuPy/NumPy arrays of this type.
62
- setattr(this, "dtype", np.dtype(list(anns.items())))
+ setattr(this, "dtype", np.dtype(list(anns.items()), align=True))
63
64
# Define __post_init__ to create a numpy struct from the fields,
65
# and keep a reference to it in the `._data` attribute. The data
0 commit comments