[samples][PhysicalDeviceGroups] Fix device name output

This commit is contained in:
mocabe 2020-03-20 03:57:46 +09:00
parent 590fc89fb5
commit 2f4ca1d168

View File

@ -43,7 +43,7 @@ int main(int /*argc*/, char ** /*argv*/)
std::cout << "\t" << "physicalDevices:\n"; std::cout << "\t" << "physicalDevices:\n";
for (size_t j = 0; j < groupProperties[i].physicalDeviceCount; j++) for (size_t j = 0; j < groupProperties[i].physicalDeviceCount; j++)
{ {
std::cout << "\t\t" << j << " : " << groupProperties[i].physicalDevices[j] << "\n"; std::cout << "\t\t" << j << " : " << groupProperties[i].physicalDevices[j].getProperties().deviceName << "\n";
} }
std::cout << "\t" << "subsetAllocation = " << static_cast<bool>(groupProperties[i].subsetAllocation) << "\n"; std::cout << "\t" << "subsetAllocation = " << static_cast<bool>(groupProperties[i].subsetAllocation) << "\n";
std::cout << "\n"; std::cout << "\n";