diff --git a/source/source_main/driver_run.cpp b/source/source_main/driver_run.cpp index 9ed8af5c5db..4ced008d67a 100644 --- a/source/source_main/driver_run.cpp +++ b/source/source_main/driver_run.cpp @@ -150,6 +150,6 @@ void Driver::finalize_hardware() #ifdef __DSP std::cout << " ** Closing DSP Hardware..." << std::endl; - mtfunc::dspDestoryHandle(GlobalV::MY_RANK); + mtfunc::dspDestoryHandle(GlobalV::MY_RANK % PARAM.inp.dsp_count); #endif }