Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps): bump sphinx from 7.4.7 to 8.0.2 #41

Merged
merged 3 commits into from
Aug 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
sphinx == 7.4.7
sphinx-rtd-theme == 2.0.0
sphinx == 8.0.2
sphinx-rtd-theme == 3.0.0rc1
enum-tools
3 changes: 2 additions & 1 deletion src/shmem4py/shmem.py
Original file line number Diff line number Diff line change
Expand Up @@ -997,8 +997,9 @@ def full(
Valid hints are defined as enumerations in `MALLOC` and can be
combined using the bitwise OR operator. Keyword argument only.
"""
fill_value = np.array(fill_value)
if dtype is None:
dtype = np.array(fill_value).dtype
dtype = fill_value.dtype
a = new_array(shape, dtype, order, align=align, hints=hints, clear=False)
np.copyto(a, fill_value, casting='unsafe')
lib.shmem_barrier_all()
Expand Down
4 changes: 2 additions & 2 deletions test/test_rma.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def testGet(self):
nxpe = (mype + 1) % npes
for t in types:
src = shmem.full(1, mype, dtype=t)
dst = np.full(1, -1, dtype=t)
dst = np.full(1, np.array(-1), dtype=t)
shmem.barrier_all()
shmem.get(dst, src, nxpe)
self.assertEqual(dst[0], nxpe)
Expand Down Expand Up @@ -148,7 +148,7 @@ def testGetNBI(self):
nxpe = (mype + 1) % npes
for t in types:
src = shmem.full(1, mype, dtype=t)
dst = np.full(1, -1, dtype=t)
dst = np.full(1, np.array(-1), dtype=t)
shmem.barrier_all()
shmem.get_nbi(dst, src, nxpe)
shmem.fence()
Expand Down