Skip to content

Commit

Permalink
Additional fix for #1, complex numbers.
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph Lassner committed Dec 8, 2020
1 parent 9895ec2 commit eafc53f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pymp/shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def array(shape, dtype=_np.float64, autolock=False):
# because they're only partially supported. Instead, create a byte ctypes
# array of the right size and use a view of the appropriate datatype.
shared_arr = _multiprocessing.Array(
"b", int(_np.prod(shape) * dtype.alignment), lock=autolock
"b", int(_np.prod(shape) * dtype.itemsize), lock=autolock
)
with _warnings.catch_warnings():
# For more information on why this is necessary, see
Expand Down

0 comments on commit eafc53f

Please sign in to comment.