Skip to content

Commit 88ad345

Browse files
committed
Fix: compiler bug in cuda version: banned write_wfc2() in PW code of CUDA&&ROCM
1 parent 8896f65 commit 88ad345

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

source/src_pw/electrons.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ void Electrons::self_consistent(const int &istep)
391391
//WF_io::write_wfc( ssw.str(), GlobalC::wf.evc );
392392
// mohan update 2011-02-21
393393
//qianrui update 2020-10-17
394-
WF_io::write_wfc2( ssw.str(), GlobalC::wf.evc, GlobalC::pw.gcar);
394+
//WF_io::write_wfc2( ssw.str(), GlobalC::wf.evc, GlobalC::pw.gcar);
395395
//ModuleBase::GlobalFunc::DONE(GlobalV::ofs_running,"write wave functions into file WAVEFUNC.dat");
396396
}
397397

source/src_pw/electrons_hip.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ void Electrons::self_consistent(const int &istep)
378378
// WF_io::write_wfc( ssw.str(), GlobalC::wf.evc );
379379
// mohan update 2011-02-21
380380
// qianrui update 2020-10-17
381-
WF_io::write_wfc2(ssw.str(), GlobalC::wf.evc, GlobalC::pw.gcar);
381+
//WF_io::write_wfc2(ssw.str(), GlobalC::wf.evc, GlobalC::pw.gcar);
382382
// ModuleBase::GlobalFunc::DONE(GlobalV::ofs_running,"write wave functions into file WAVEFUNC.dat");
383383
}
384384

0 commit comments

Comments
 (0)