the code in gds_ordinal_from_device() assumes CUdevice==device ordinal, which is not officially guaranteed. We need a better solution.