Skip to content
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
18 changes: 1 addition & 17 deletions .basedpyright/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -8315,22 +8315,6 @@
"lineCount": 1
}
},
{
"code": "reportAny",
"range": {
"startColumn": 12,
"endColumn": 24,
"lineCount": 1
}
},
{
"code": "reportAny",
"range": {
"startColumn": 27,
"endColumn": 53,
"lineCount": 1
}
},
{
"code": "reportAny",
"range": {
Expand All @@ -8343,7 +8327,7 @@
"code": "reportAny",
"range": {
"startColumn": 29,
"endColumn": 53,
"endColumn": 56,
"lineCount": 1
}
}
Expand Down
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 @@ def get_optimized_kernel(self, *,
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 @@ def __call__(self,

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
else:
# these are unused for not GPU and defeats the caching
# set them to None to keep the caching across dtypes
Expand Down
Loading