Add hardware device detection

This refs affinitic #5362