| 259 | } |
| 260 | |
| 261 | hipError_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 | |
| 275 | FatBinaryInfo** StatCO::addFatBinary(const void* data, bool initialized, bool& success) { |
| 276 | amd::ScopedLock lock(sclock_); |
nothing calls this directly
no test coverage detected