This code worked at least once on my desktop. The GPU memory management on
this code is becoming a really big nightmare.