Skip to content

Commit d8a10d5

Browse files
authored
fix: abacus hang when nbands < ncpu (#2557)
* Update tool_quit.cpp can't use MPI_Allreduce under the condition of rank == 0 * don't print memory info in QUIT()
1 parent c6db80a commit d8a10d5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

source/module_base/tool_quit.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ void QUIT(void)
4747

4848
ModuleBase::Global_File::close_all_log(GlobalV::MY_RANK);
4949

50-
if (GlobalV::MY_RANK==0)
51-
{
52-
ModuleBase::Memory::print_all( GlobalV::ofs_running ) ;
53-
}
50+
//if (GlobalV::MY_RANK==0)
51+
//{
52+
// ModuleBase::Memory::print_all( GlobalV::ofs_running ) ;
53+
//}
5454
std::cout<<" See output information in : "<<GlobalV::global_out_dir<<std::endl;
5555
#endif
5656

0 commit comments

Comments
 (0)