Commit 04671592 authored by Alessandro Mirone's avatar Alessandro Mirone

fine tuning for performances

parent dd37eeb3
#/*##########################################################################
# Copyright (C) 2001-2013 European Synchrotron Radiation Facility
#
......@@ -826,7 +825,7 @@ class Processing_InterleavedReadingPreProcessing(ProcessingBaseClass):
## ----------------- data for specific requirement. Resources know their name -----------------------------
self.requiredCpusGpus = [ [1*P.ncpus_expansion ] , 0 ]
self.requiredCpusGpus = [ [0*P.ncpus_expansion ] , 0 ]
def processSpecial(self,psn ):
......
......@@ -405,6 +405,7 @@ void read_data_from_h5( char * filename,
herr_t status;
int rank ;
printf(" reading %s dataset %s at nproj %d \n", filename, dsname, nproj ) ;
file = H5Fopen(filename, H5F_ACC_RDONLY, H5P_DEFAULT);
dataset = H5Dopen(file, dsname);
......@@ -480,9 +481,10 @@ void read_data_from_h5( char * filename,
if(v_span > 1) {
float line[v_span];
int i,k;
#pragma omp parallel for private(i,k) num_threads (8)
for( i = 0; i< size0*size1; i++) {
float line[v_span];
for( k = 0 ; k < v_span ; k++ ) {
line[ k ] = mytarget[ i + k * size0*size1 ] ;
target[ i ] = quickselect(line, 0, v_span -(v_span%2), (v_span -(v_span%2) -1 )/2 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment