cuda: enhanced the implementation of the device attributes