Skip to content

Commit bec6a12

Browse files
committed
merge main into amd-staging
2 parents c03acc8 + 4f02965 commit bec6a12

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

offload/plugins-nextgen/common/include/PluginInterface.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ struct GenericKernelTy {
319319
AsyncInfoWrapperTy &AsyncInfoWrapper) const = 0;
320320

321321
/// Get the kernel name.
322-
const char *getName() const { return Name; }
322+
const char *getName() const { return Name.c_str(); }
323323

324324
/// Get the kernel image.
325325
DeviceImageTy &getImage() const {
@@ -482,7 +482,7 @@ struct GenericKernelTy {
482482
bool IsNumThreadsFromUser) const;
483483

484484
/// The kernel name.
485-
const char *Name;
485+
std::string Name;
486486

487487
/// The execution flags of the kernel.
488488
OMPTgtExecModeFlags ExecutionMode;

offload/plugins-nextgen/common/src/PluginInterface.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ Error GenericKernelTy::init(GenericDeviceTy &GenericDevice,
504504
KernelEnvironment = KernelEnvironmentTy{};
505505
DP("Failed to read kernel environment for '%s' Using default Bare (0) "
506506
"execution mode\n",
507-
Name);
507+
getName());
508508
}
509509

510510
// Create a metadata object for the exec mode global (auto-generated).

0 commit comments

Comments
 (0)