CUDA error 201 fixed when using threads. linux build.