What is difference between Device and Target

why they designed separately?Thank you

device is a runtime concept e.g. a GPU device, while target is a compile time concept. They are counterpart of each other. Sometimes different target configuration can work on the same device, for example, a cuda target that enables tensor-core and another without tensor core can both work under rtx 4090

3 Likes

Thank you for answering me. It helps !