So I've been working with sending parts of my script's calculation to the GPU for analysis and I did not change the code a bit through this entire course of events.
I first made the switch over to using GPUs and suddenly my code was running 10 times faster and it was amazing. I felt like I was on top of the world but then suddenly I starting getting errors saying "CUDA_ERROR_OUT_OF_MEMORY" and my code would not run. I was able to get around this problem by littering my code with reset() commands but eventually my computer (in its entirety) crashed abruptly.
So I rebooted my computer and now parts of my code if I run them will return the error: "Error using gpuArray/size The data no longer exists on the device."
and even when I don't use this part of the code the rest of the code is now running 10 times slower than it was before I made the switch over to using the GPU.
I will be very honest; I have absolutely no idea what is happening right now. If I could reliably get the sort of speed increase I had initially though I would die a happy man.
Any help that anyone could offer and if anyone had an explanation of what was going on I would greatly appreciate it!