bugfixes for OpenCL and CUDA simulations

fixes bugs introduced by the new GPU version, based on OpenCL/CUDA file generation by BOAST