clean up of GPUCommon
Merge pull request #379 from thefarcry118/master

GPUCommon iterator cleanup