compiler error fixing for the new affinity wrapper-based spectral dyn means