I am trying to match string with a substring through CUDA. But when I am doing this, first time I am getting right results but next time when I changed the substring and then matches, then I got the result of first time substring match with the current one and this goes on… Sometimes it gives all previous results and doesn’t give any current substring match result.
I thought it may be because of gpu memory is not freed. I tried for all aproaches to free gpu memory.
can anyone help me on this?
Thanks and Regards