{"action":"created","issue":{"url":"https://api.github.com/repos/arrayfire/arrayfire/issues/1364","repository_url":"https://api.github.com/repos/arrayfire/arrayfire","labels_url":"https://api.github.com/repos/arrayfire/arrayfire/issues/1364/labels{/name}","comments_url":"https://api.github.com/repos/arrayfire/arrayfire/issues/1364/comments","events_url":"https://api.github.com/repos/arrayfire/arrayfire/issues/1364/events","html_url":"https://github.com/arrayfire/arrayfire/issues/1364","id":143726339,"number":1364,"title":"Application Doesn't stop after calculations are done","user":{"login":"afhuertass","id":16570373,"avatar_url":"https://avatars.githubusercontent.com/u/16570373?v=3","gravatar_id":"","url":"https://api.github.com/users/afhuertass","html_url":"https://github.com/afhuertass","followers_url":"https://api.github.com/users/afhuertass/followers","following_url":"https://api.github.com/users/afhuertass/following{/other_user}","gists_url":"https://api.github.com/users/afhuertass/gists{/gist_id}","starred_url":"https://api.github.com/users/afhuertass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afhuertass/subscriptions","organizations_url":"https://api.github.com/users/afhuertass/orgs","repos_url":"https://api.github.com/users/afhuertass/repos","events_url":"https://api.github.com/users/afhuertass/events{/privacy}","received_events_url":"https://api.github.com/users/afhuertass/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-03-26T16:25:35Z","updated_at":"2016-03-26T19:54:14Z","closed_at":null,"body":"Hi. I have a code with something the next structure \r\n\r\n```\r\n rhos = this->rho();\r\n  Ux = (this->Jx()/rhos) ;\r\n  Uy = (this->Jy()/rhos) ;\r\n  Uz = (this->Jz()/rhos) ;\r\n  \r\n  array feq = this->feq3( rhos, Ux , Uy , Uz);\r\n\r\n  for( int i = 0 ; i < q ; i++){\r\n    fs[i] += beta*( feq(span,span,span,i) - fs[i]);\r\n  }\r\n```\r\nwhich has to be called thousands of times. Ux, Uy,Uz and rhos are 3D arrays and fs is a  STL vector strcuture. But the problem is that the process never stop once the calculations are done, i check this with a cout in the class destructor. It keeps running and dont release the memory in the GPU. I tested this in a TeslaK40 and in my personal card. \r\nIn my card the process keeps doing nothing for a while and then releases the memory. in the big card... i being waiting for over an hour and still just hanging in there. \r\n\r\nthe full code used can be found in my repository : https://github.com/afhuertass/ArrayFireLB/blob/master/src/LBD3Q15.cpp \r\n\r\nAny idea what's going wrong? \r\nThanks. "},"comment":{"url":"https://api.github.com/repos/arrayfire/arrayfire/issues/comments/201919548","html_url":"https://github.com/arrayfire/arrayfire/issues/1364#issuecomment-201919548","issue_url":"https://api.github.com/repos/arrayfire/arrayfire/issues/1364","id":201919548,"user":{"login":"afhuertass","id":16570373,"avatar_url":"https://avatars.githubusercontent.com/u/16570373?v=3","gravatar_id":"","url":"https://api.github.com/users/afhuertass","html_url":"https://github.com/afhuertass","followers_url":"https://api.github.com/users/afhuertass/followers","following_url":"https://api.github.com/users/afhuertass/following{/other_user}","gists_url":"https://api.github.com/users/afhuertass/gists{/gist_id}","starred_url":"https://api.github.com/users/afhuertass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afhuertass/subscriptions","organizations_url":"https://api.github.com/users/afhuertass/orgs","repos_url":"https://api.github.com/users/afhuertass/repos","events_url":"https://api.github.com/users/afhuertass/events{/privacy}","received_events_url":"https://api.github.com/users/afhuertass/received_events","type":"User","site_admin":false},"created_at":"2016-03-26T19:54:14Z","updated_at":"2016-03-26T19:54:14Z","body":"yes ... i tested a few, the blas and the examples of a blog post called \"How to write vectorize code\"\r\n\r\nbut is really weird cause i remember that before i tested them and worked just fine.  it can be caused by other process running in the GPU? . other guy has a process in there and its being running for several days ( i haven't talk to he, to ask what is doing in the machine) \r\nhere is what the nvidia-smi drops : \r\n![ssf10](https://cloud.githubusercontent.com/assets/16570373/14062139/535846d0-f362-11e5-943b-3ed3c217bc93.png)\r\n \r\nif i dont kill the process ./lattice and ./blas_cuda the will keep running like forever. \r\n\r\nAnd here the results of the blas benchmark. the calculations and doe but... \r\n![Uploading ssf102.png…]()\r\n"}}