preparations for integration of GPU code