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
2 changes: 1 addition & 1 deletion pyopencl/array.py
Original file line number Diff line number Diff line change
Expand Up @@ -1935,7 +1935,7 @@ def reshape(self, *shape, **kwargs):
# {{{ determine reshaped strides

# copied and translated from
# https://github.com/numpy/numpy/blob/4083883228d61a3b571dec640185b5a5d983bf59/numpy/core/src/multiarray/shape.c # noqa: E501
# https://github.com/numpy/numpy/blob/4083883228d61a3b571dec640185b5a5d983bf59/numpy/core/src/multiarray/shape.c

newdims = shape
newnd = len(newdims)
Expand Down
5 changes: 0 additions & 5 deletions pyopencl/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,6 @@ def _inner(src: bytes):
for match in C_INCLUDE_RE.finditer(src):
included = match.group(1)

found = False
for ipath in include_path:
included_file_name = realpath(join(ipath, included.decode()))

Expand Down Expand Up @@ -232,12 +231,8 @@ def _inner(src: bytes):
checksum.hexdigest(),
)

found = True
break # stop searching the include path

if not found:
pass

_inner(src)

result_list = [
Expand Down
10 changes: 3 additions & 7 deletions pyopencl/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -562,13 +562,9 @@ def first_arg_dependent_memoize_nested(
frame = currentframe()
cache_context = None
if frame:
try:
caller_frame = frame.f_back
if caller_frame:
cache_context = caller_frame.f_globals[caller_frame.f_code.co_name]
finally:
# del caller_frame
pass
caller_frame = frame.f_back
if caller_frame:
cache_context = caller_frame.f_globals[caller_frame.f_code.co_name]

cache_dict: dict[Hashable, dict[Hashable, RetT]]
try:
Expand Down
Loading