Skip to content

Commit 6804f02

Browse files
committed
Ensure dtype is aligned
1 parent d7c733b commit 6804f02

File tree

1 file changed

+1
-1
lines changed
  • python/cuda_parallel/cuda/parallel/experimental

1 file changed

+1
-1
lines changed

python/cuda_parallel/cuda/parallel/experimental/struct.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def gpu_struct(this: type) -> Type[GpuStruct]:
5959
# Set a .dtype attribute on the class that returns the
6060
# corresponding numpy structure dtype. This makes it convenient to
6161
# create CuPy/NumPy arrays of this type.
62-
setattr(this, "dtype", np.dtype(list(anns.items())))
62+
setattr(this, "dtype", np.dtype(list(anns.items()), align=True))
6363

6464
# Define __post_init__ to create a numpy struct from the fields,
6565
# and keep a reference to it in the `._data` attribute. The data

0 commit comments

Comments
 (0)