Fix for filling CUDA array. OpenMP clauses for CPU loops.