Hi folks

When attempting to write a short offload section I get the run time error

address range partially overlaps with existing allocation

but not sure where to start debugging this. Here's the code section in question (sorry it seems to have lost indenting):

#pragma omp parallel for default(none), private(i,k,term3,m,sum_Theta_Psi,n), shared(Theta_i, Psi, ln_Gamma_i, Q, molecules, maxGroupNum)

for (i=0; i<molecules; i++) {

for (k=0; k<maxGroupNum; k++) {

term3 = 0.0;

for (m=0; m<maxGroupNum; m++) {

sum_Theta_Psi = 0.0; // reuse var but not for 'i' component

#pragma vector always

for (n=0; n<maxGroupNum; n++) {

sum_Theta_Psi += Theta_i[i][n] * Psi[n][m];

}

term3 += Theta_i[i][m]*Psi[k][m] / sum_Theta_Psi;

}

// reset use of sum_Theta_Psi to be used for second term

sum_Theta_Psi = 0.0;

#pragma vector always

for (m=0; m<maxGroupNum; m++) {

sum_Theta_Psi += Theta_i[i][m] * Psi[m][k];

}

ln_Gamma_i[i][k] = Q[k] * (1.0 - log(sum_Theta_Psi) - term3);

}

} //for i

// omp parallel for

} // pragma offload

YOurs, mIchael