Closed pearl-rabbit closed 1 year ago
Hi @pearl-rabbit
commit https://github.com/getkeops/keops/commit/3c1ebb0478a94cc6772fa582a8a604a4b7a07acd should have fixed the leaks described issue #284 . If the memory increasing you are experiencing is still a leak, please provide a minimum example to reproduce it and feel free to reopen the issue.
I am currently unsure where the leak issue occurred, but when I looked at the cache file "keops version/Linux_admin 5.4.0-144 generic_p3.7.16", I found that the file "LoadKeOps_nvrtc_class_cache. pkl" takes up more space than it was used during initialization.
I installed the recently updated keops using the following method:
git clone --recursive https://github.com/getkeops/keops.git /path/to/libkeops
pip install -e /path/to/libkeops/keopscore -e /path/to/libkeops/pykeops
But when I was testing, there was an error:
`>>> pykeops.test_numpy_bindings()
[KeOps] error: cuMemcpyDtoH(out, (CUdeviceptr) out_d, sizeof(TYPE) * sizeout) failed with error CUDA_ERROR_INVALID_VALUE
Traceback (most recent call last): File "", line 1, in
File "/distM2_1T/tools/libkeops/pykeops/pykeops/numpy/test_install.py", line 20, in test_numpy_bindings
if np.allclose(my_conv(x, y).flatten(), expected_res):
File "/distM2_1T/tools/libkeops/pykeops/pykeops/numpy/generic/generic_red.py", line 347, in call
out = self.myconv.genred_numpy(-1, ranges, nx, ny, nbatchdims, out, *args)
File "/distM2_1T/tools/libkeops/pykeops/pykeops/common/keops_io/LoadKeOps.py", line 230, in genred
self.call_keops(nx, ny)
File "/distM2_1T/tools/libkeops/pykeops/pykeops/common/keops_io/LoadKeOps_nvrtc.py", line 65, in call_keops
self.argshapes_new,
RuntimeError: [KeOps] Cuda error.
`
My code can run, but the memory is still increasing during the run. This is the output of "memory_profile":