[Omp] is MAX reduction available for c/c++ ?
ThanhVu H. Nguyen - Gmail
nguyenthanhvuh at gmail.com
Fri Jun 24 16:28:04 PDT 2005
Hi, I search online for MAX reduction and it seems only available for
Fortran ? In that case what is the simplest/standard parallel way to
find the the max value in an array for code in c++ ? Thanks,
e.g this is the sequential code for finding largest.
int largest = 0 ;
for (int i = 0 ; i < 1000 ; ++i){
if (data[i]>largest) largest=data[i];
}
tvn,
ThanhVu H. Nguyen
More information about the Omp
mailing list