GRES fix for commit 6f50943cbcfe0d9c8155afe3aba0f07af1d3c022

For a system with hyperthreads and GRES bound to specific CPUs,
there was an error in assigning CPUs