multidim OpenMP version