diff --git a/src/accel_utils.c b/src/accel_utils.c index 88595e80b..cb0e70518 100644 --- a/src/accel_utils.c +++ b/src/accel_utils.c @@ -1319,7 +1319,7 @@ void inmem_add_ffdotpows(ffdotpows * fundamental, accelobs * obs, // Now add all the powers #ifdef _OPENMP -#pragma omp parallel default(none) shared(rinds,fundamental,obs,numrs,numzs,harm_fract) +#pragma omp parallel shared(rinds,fundamental,obs) #endif { const int zlo = fundamental->zlo; @@ -1370,7 +1370,7 @@ void inmem_add_ffdotpows_trans(ffdotpows * fundamental, accelobs * obs, // Now add all the powers #ifdef _OPENMP -#pragma omp parallel default(none) shared(rinds,fundamental,obs,numrs,numzs,harm_fract) +#pragma omp parallel shared(rinds,fundamental,obs) #endif { const int zlo = fundamental->zlo; diff --git a/src/dispersion.c b/src/dispersion.c index b009b934d..f45b2d5ba 100644 --- a/src/dispersion.c +++ b/src/dispersion.c @@ -192,7 +192,7 @@ void dedisp_subbands(float *data, float *lastdata, float *sub = result + subnum * numpts; float *chan = lastdata + ii * numpts + dind; #ifdef _OPENMP -#pragma omp parallel for default(none) private(jj) shared(sub,chan,numpts,dind) +#pragma omp parallel for private(jj) shared(sub,chan,numpts) #endif for (jj = 0; jj < numpts - dind; jj++) sub[jj] += chan[jj]; diff --git a/src/psrfits.c b/src/psrfits.c index 1022ac98c..e45a8930d 100644 --- a/src/psrfits.c +++ b/src/psrfits.c @@ -935,7 +935,7 @@ void get_PSRFITS_subint(float *fdata, unsigned char *cdata, struct spectra_info const int idx = (s->use_poln - 1) * s->num_channels; if (s->bits_per_sample == 16) { #ifdef _OPENMP -#pragma omp parallel for default(none) shared(s,cdata,fdata,scales,offsets,weights,idx) +#pragma omp parallel for shared(s,cdata,fdata,scales,offsets,weights) #endif for (ii = 0; ii < s->spectra_per_subint; ii++) { int jj; @@ -949,7 +949,7 @@ void get_PSRFITS_subint(float *fdata, unsigned char *cdata, struct spectra_info } } else if (s->bits_per_sample == 32) { #ifdef _OPENMP -#pragma omp parallel for default(none) shared(s,cdata,fdata,scales,offsets,weights,idx) +#pragma omp parallel for shared(s,cdata,fdata,scales,offsets,weights) #endif for (ii = 0; ii < s->spectra_per_subint; ii++) { int jj; @@ -964,7 +964,7 @@ void get_PSRFITS_subint(float *fdata, unsigned char *cdata, struct spectra_info } } else { #ifdef _OPENMP -#pragma omp parallel for default(none) shared(s,cdata,fdata,scales,offsets,weights,idx) +#pragma omp parallel for shared(s,cdata,fdata,scales,offsets,weights) #endif for (ii = 0; ii < s->spectra_per_subint; ii++) { int jj; @@ -981,7 +981,7 @@ void get_PSRFITS_subint(float *fdata, unsigned char *cdata, struct spectra_info const int idx = s->num_channels; if (s->bits_per_sample == 16) { #ifdef _OPENMP -#pragma omp parallel for default(none) shared(s,cdata,fdata,scales,offsets,weights,idx) +#pragma omp parallel for shared(s,cdata,fdata,scales,offsets,weights) #endif for (ii = 0; ii < s->spectra_per_subint; ii++) { int jj; @@ -1000,7 +1000,7 @@ void get_PSRFITS_subint(float *fdata, unsigned char *cdata, struct spectra_info } } else if (s->bits_per_sample == 32) { #ifdef _OPENMP -#pragma omp parallel for default(none) shared(s,cdata,fdata,scales,offsets,weights,idx) +#pragma omp parallel for shared(s,cdata,fdata,scales,offsets,weights) #endif for (ii = 0; ii < s->spectra_per_subint; ii++) { int jj; @@ -1020,7 +1020,7 @@ void get_PSRFITS_subint(float *fdata, unsigned char *cdata, struct spectra_info } } else { #ifdef _OPENMP -#pragma omp parallel for default(none) shared(s,cdata,fdata,scales,offsets,weights,idx) +#pragma omp parallel for shared(s,cdata,fdata,scales,offsets,weights) #endif for (ii = 0; ii < s->spectra_per_subint; ii++) { int jj;