Skip to content
Open
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
5 changes: 3 additions & 2 deletions sumpy/p2p.py
Original file line number Diff line number Diff line change
Expand Up @@ -754,6 +754,7 @@
if strength_dtype == source_dtype:
knl = lp.concatenate_arrays(knl, local_arrays, "local_isrc")
local_arrays = ["local_isrc"]
local_array_isrc_axis = [1]
local_array_sizes = [self.dim + self.strength_count]
local_array_dtypes = [source_dtype]
# We try to mark the local arrays (sources, strengths)
Expand Down Expand Up @@ -811,8 +812,8 @@

is_gpu = not is_cl_cpu(actx)
if is_gpu:
source_dtype = kwargs["sources"][0].dtype
strength_dtype = kwargs["strength"].dtype
source_dtype = sources[0].dtype
strength_dtype = kwargs["strength"][0].dtype

Check warning on line 816 in sumpy/p2p.py

View workflow job for this annotation

GitHub Actions / basedpyright

Type of "dtype" is Any (reportAny)
else:
# these are unused for not GPU and defeats the caching
# set them to None to keep the caching across dtypes
Expand Down
Loading