From b31547c9035bd44a03302b4f9e7d1ffad41e468d Mon Sep 17 00:00:00 2001 From: Peter Boyle Date: Wed, 19 Aug 2026 23:23:18 -0400 Subject: [PATCH] no compile fix --- Grid/lattice/Lattice_transfer.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Grid/lattice/Lattice_transfer.h b/Grid/lattice/Lattice_transfer.h index 20ca49eb7..b58037b19 100644 --- a/Grid/lattice/Lattice_transfer.h +++ b/Grid/lattice/Lattice_transfer.h @@ -191,6 +191,15 @@ accelerator_inline void convertType(vComplexD & out, const ComplexD & in) { accelerator_inline void convertType(vComplexD2 & out, const ComplexD & in) { ((ComplexD*)&out)[acceleratorSIMTlane(vComplexD::Nsimd()*2)] = in; } +// Lex chart: one lane, so there is no lane to select. Needed because the +// coalesced accessor hands the kernel a scalar object while the destination +// is still the vector type. +accelerator_inline void convertType(sComplexF & out, const ComplexF & in) { + out.v = in; +} +accelerator_inline void convertType(sComplexD & out, const ComplexD & in) { + out.v = in; +} #endif accelerator_inline void convertType(vComplexF & out, const vComplexD2 & in) {