SWDEV-198415 - Implement Target ID Proposal
Changes from Jatin Chaudhary, Tony Tye Change-Id: I14904920ad2356ae2098cf827b83613089d33962
This commit is contained in:
@@ -49,12 +49,12 @@ FatBinaryInfo::~FatBinaryInfo() {
|
||||
hipError_t FatBinaryInfo::ExtractFatBinary(const std::vector<hip::Device*>& devices) {
|
||||
hipError_t hip_error = hipSuccess;
|
||||
std::vector<std::pair<const void*, size_t>> code_objs;
|
||||
code_objs.resize(devices.size());
|
||||
|
||||
// Copy device names for Extract Code object File
|
||||
std::vector<const char*> device_names;
|
||||
device_names.reserve(devices.size());
|
||||
for (size_t dev_idx = 0; dev_idx < devices.size(); ++dev_idx) {
|
||||
device_names.push_back(devices[dev_idx]->devices()[0]->info().name_);
|
||||
device_names.push_back(devices[dev_idx]->devices()[0]->info().targetId_);
|
||||
}
|
||||
|
||||
// We are given file name, get the file desc and file size
|
||||
@@ -85,7 +85,7 @@ hipError_t FatBinaryInfo::ExtractFatBinary(const std::vector<hip::Device*>& devi
|
||||
}
|
||||
|
||||
if (hip_error == hipErrorNoBinaryForGpu) {
|
||||
guarantee(false && "hipErrorNoBinaryForGpu: Coudn't find binary for current devices!");
|
||||
guarantee(false && "hipErrorNoBinaryForGpu: Couldn't find binary for current devices!");
|
||||
return hip_error;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user