Main #Device Compilation