lattice / quda

QUDA is a library for performing calculations in lattice QCD on GPUs.
https://lattice.github.io/quda
Other
294 stars 100 forks source link

Fix MG verify issue in some specific cases. #1509

Closed SaltyChiang closed 3 weeks ago

SaltyChiang commented 3 weeks ago

MG::verify will be called in the updateMultigridQuda function if run_verify and thin_update_only are true. There is an M call here, and the input parameter r_coarse will not be a length 1 vector if the MRHS solver has been used before, which causes a segfault because of the mismatch of input and output lengths.

The PR also contains some minor updates: