Skip to content

Commit

Permalink
Update deprecated CuPy method
Browse files Browse the repository at this point in the history
  • Loading branch information
OverLordGoldDragon committed Mar 27, 2024
1 parent 5744af1 commit 507293a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ssqueezepy/utils/gpu_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ def _run_on_gpu(kernel, grid, block, *args, **kwargs):
stream=Stream(ptr=torch.cuda.current_stream().cuda_stream))


@cp._util.memoize(for_each_device=True)
@cp.memoize(for_each_device=True)
def load_kernel(kernel_name, code, **kwargs):
code = Template(code).substitute(**kwargs)
kernel_code = cp.cuda.compile_with_cache(code)
kernel_code = cp.RawModule(code=code)
return kernel_code.get_function(kernel_name)


Expand Down

0 comments on commit 507293a

Please sign in to comment.