First MPI+thread version