Generating OpenMP and CUDA