Use HostCPU instead of lexicographically first device for client device
Use HostCPU instead of lexicographically first device for client device

The existing code happens to work when the only devices are CPUs and GPUs because "C" comes before "G", but if we add other devices with certain names it will pick the wrong device (e.g. imagine adding a new device called "APU").
