I have 2 applications implemented on cuda. My 1st application works correctly but 2nd one has some errors which i am yet to debug.
I run 2nd application which leads to an error and after that if i try running my 1st application . When i do this, my 1st application does not work. But when i re run it again it works.
Why does this happen? Is there something i need to do at the end of every program or at the beginning of a program in order to avoid a situation like this.