Commit 94745b29 authored by Cristian Lalescu's avatar Cristian Lalescu Committed by Cristian Lalescu
Browse files

reduces p2p buffer usage

parent a1bb9154
Pipeline #94989 failed with stages
in 14 minutes and 54 seconds
......@@ -110,9 +110,9 @@ field<rnumber, be, fc>::field(
this->data,
this->comm,
this->fftw_plan_rigor | FFTW_MPI_TRANSPOSED_IN);
plan_information = fftw_interface<rnumber>::sprint(this->c2r_plan);
DEBUG_MSG("field::field c2r plan representation is\n\%s\n", plan_information);
free(plan_information);
//plan_information = fftw_interface<rnumber>::sprint(this->c2r_plan);
//DEBUG_MSG("field::field c2r plan representation is\n\%s\n", plan_information);
//free(plan_information);
this->r2c_plan = fftw_interface<rnumber>::mpi_plan_many_dft_r2c(
3, nfftw, ncomp(fc),
FFTW_MPI_DEFAULT_BLOCK, FFTW_MPI_DEFAULT_BLOCK,
......@@ -120,9 +120,9 @@ field<rnumber, be, fc>::field(
(typename fftw_interface<rnumber>::complex*)this->data,
this->comm,
this->fftw_plan_rigor | FFTW_MPI_TRANSPOSED_OUT);
plan_information = fftw_interface<rnumber>::sprint(this->r2c_plan);
DEBUG_MSG("field::field r2c plan representation is\n\%s\n", plan_information);
free(plan_information);
//plan_information = fftw_interface<rnumber>::sprint(this->r2c_plan);
//DEBUG_MSG("field::field r2c plan representation is\n\%s\n", plan_information);
//free(plan_information);
break;
}
// use Fourier representation for setting field to 0,
......
......@@ -128,6 +128,9 @@ protected:
data[destData*sizeElement + idxVal]
= dataBuffer[srcData*sizeElement + idxVal];
}
// Clean up memory
buffer->resize(0);
}
buffer->resize(0);
......
Supports Markdown
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