MCPcopy Create free account
hub / github.com/ROCm/clr / digestFatBinary

Method digestFatBinary

hipamd/src/hip_code_object.cpp:261–273  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259}
260
261hipError_t StatCO::digestFatBinary(const void* data, FatBinaryInfo*& programs) {
262 amd::ScopedLock lock(sclock_);
263
264 if (programs != nullptr) {
265 return hipSuccess;
266 }
267
268 // Create a new fat binary object and extract the fat binary for all devices.
269 FatBinaryInfo* fatBinaryInfo = new FatBinaryInfo(nullptr, data);
270 hipError_t err = fatBinaryInfo->ExtractFatBinaryUsingCOMGR(g_devices);
271 programs = fatBinaryInfo;
272 return err;
273}
274
275FatBinaryInfo** StatCO::addFatBinary(const void* data, bool initialized, bool& success) {
276 amd::ScopedLock lock(sclock_);

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected