We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c2d177c + eb2c3ce commit 1a6ad18Copy full SHA for 1a6ad18
source/adapters/level_zero/program.cpp
@@ -452,9 +452,11 @@ ur_result_t urProgramLinkExp(
452
// Build flags may be different for different devices, so handle them
453
// here. Clear values of the previous device first.
454
BuildFlagPtrs.clear();
455
+ std::vector<std::string> TemporaryOptionsStrings;
456
for (uint32_t I = 0; I < count; I++) {
- BuildFlagPtrs.push_back(
457
- phPrograms[I]->getBuildOptions(ZeDevice).c_str());
+ TemporaryOptionsStrings.push_back(
458
+ phPrograms[I]->getBuildOptions(ZeDevice));
459
+ BuildFlagPtrs.push_back(TemporaryOptionsStrings.back().c_str());
460
}
461
ZeExtModuleDesc.pBuildFlags = BuildFlagPtrs.data();
462
if (count == 1)
0 commit comments