NV workaround. Using the command queue to get the device id