MegBA icon indicating copy to clipboard operation
MegBA copied to clipboard

memory leak when solve multi-time GBA

Open xingweiqu opened this issue 2 years ago • 1 comments

Hi thanks for your amazing work and open sourced code

Start with error: 0.105238, log error: -0.977827, elapsed 4 ms
CUDA error 700 [/usr/local/cuda-11.3/include/cub/block/../iterator/../util_device.cuh, 635]: an illegal memory access was encountered
CUDA error 700 [/usr/local/cuda-11.3/include/thrust/system/cuda/detail/extrema.h, 210]: an illegal memory access was encountered
terminate called after throwing an instance of 'thrust::system::system_error'
  what():  extrema failed on 1st step: cudaErrorIllegalAddress: an illegal memory access was encountered

I have a cuda error 700, when I construct solver and solve GBA multi-times, this error would happen. It seems that there is some raw pointer error. Could you plz to help me for this problem?

xingweiqu avatar Mar 29 '22 03:03 xingweiqu

Hi @xingweiqu try this fork I think the second commit in it is the solution for your problem, I suffered from the same problem and that was the solution. https://github.com/khshmt/MegBA

khshmt avatar Sep 25 '22 14:09 khshmt