Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

memory leak when solve multi-time GBA #21

Open
xingweiqu opened this issue Mar 29, 2022 · 1 comment
Open

memory leak when solve multi-time GBA #21

xingweiqu opened this issue Mar 29, 2022 · 1 comment

Comments

@xingweiqu
Copy link

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?

@khshmt
Copy link
Contributor

khshmt commented Sep 25, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants