Commit 33cfe081 authored by Giovanni Lacopo's avatar Giovanni Lacopo
Browse files

modification for clang

parent 591ecc58
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -222,7 +222,14 @@ void phase_correction(double* gridss, double* image_real, double* image_imag, in
	}

#else
       #if !defined(__clang__)

       #pragma omp target teams distribute parallel for collapse(3) simd private(wterm) map(to:gridss[0:2*num_w_planes*xaxis*yaxis]) map(from:image_real[0:xaxis*yaxis]) map(from:image_imag[0:xaxis*yaxis]) device(rank % omp_get_num_devices())

       #else

       #pragma omp target teams distribute parallel for collapse(3) private(wterm) map(to:gridss[0:2*num_w_planes*xaxis*yaxis]) map(from:image_real[0:xaxis*yaxis]) map(from:image_imag[0:xaxis*yaxis]) device(rank % omp_get_num_devices())
	
	for (int iw=0; iw<num_w_planes; iw++)
	{
	    for (int iv=0; iv<yaxis; iv++)