Skip to content
Snippets Groups Projects
Commit 446e5939 authored by Ludovic Hussonnois's avatar Ludovic Hussonnois
Browse files

REFAC: Remove log message.

parent a8db8b4c
No related branches found
No related tags found
No related merge requests found
......@@ -84,20 +84,16 @@ private:
void CleanupFFTWThreads()
{
std::cout << "Start cleanup threads" << std::endl;
// This is a trick to make sure fftw will cleanup its threads when application
// shared lib is released.
#if defined(ITK_USE_FFTWF)
std::cout << "ITK_USE_FFTWF" << std::endl;
fftwf_cleanup_threads();
fftwf_cleanup();
#endif
#if defined(ITK_USE_FFTWD)
std::cout << "ITK_USE_FFTWD" << std::endl;
fftw_cleanup_threads();
fftw_cleanup();
#endif
std::cout << "End cleanup threads" << std::endl;
}
void DoInit() ITK_OVERRIDE
......
......@@ -95,8 +95,6 @@ MPIConfig::~MPIConfig()
void MPIConfig::Init(int &argc, char **&argv, bool abortOnException) {
if( !m_terminated )
{
std::cout << "MPI Initialization : " << this << std::endl;
std::flush(std::cout);
// Abort on exception
m_abortOnException = abortOnException;
// Initialize
......@@ -141,27 +139,18 @@ void MPIConfig::terminate()
{
if( m_initialized && !m_terminated )
{
std::cout << "Terminate : " << this << std::endl;
std::flush(std::cout);
if( std::uncaught_exception() && m_abortOnException )
{
std::cout << "Abord" << std::endl;
abort( EXIT_FAILURE );
}
else
{
std::cout << "Start Finalize MPI" << std::endl;
std::flush( std::cout );
int finalized;
OTB_MPI_CHECK_RESULT( MPI_Finalized, ( &finalized ));
if( !finalized )
{
std::cout << "Start 2nd End Finalize MPI" << std::endl;
OTB_MPI_CHECK_RESULT( MPI_Finalize, ( ));
std::cout << "End 2nd Finalize MPI" << std::endl;
}
std::cout << "End Finalize MPI" << std::endl;
std::flush( std::cout );
}
m_terminated = true;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment