Use OpenMP with a simple reduction.