Skip to content

Commit f833256

Browse files
authored
Fix DSP count check problem (deepmodeling#7035)
1 parent a0bcf72 commit f833256

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

source/source_main/driver_run.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ void Driver::init_hardware()
124124
#endif
125125

126126
#ifdef __DSP
127-
if (GlobalV::NPROC > PARAM.inp.kpar)
127+
if (GlobalV::NPROC > PARAM.inp.kpar && GlobalV::NPROC > PARAM.globalv.kpar_lcao)
128128
{
129129
ModuleBase::WARNING_QUIT(
130130
"Driver::init_hardware",

0 commit comments

Comments
 (0)