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.
1 parent b5b4232 commit 987683aCopy full SHA for 987683a
cpp/src/nvtx.cpp
@@ -85,7 +85,8 @@ void NvtxManager::rename_current_thread(std::string_view new_name) noexcept
85
attribs.identifierType = NVTX_RESOURCE_TYPE_GENERIC_THREAD_NATIVE;
86
attribs.identifier.ullValue = tid;
87
attribs.messageType = NVTX_MESSAGE_TYPE_ASCII;
88
- attribs.message.ascii = ss.str().c_str();
+ auto st = ss.str();
89
+ attribs.message.ascii = st.c_str();
90
nvtxResourceHandle_t handle =
91
nvtxDomainResourceCreate(nvtx3::domain::get<libkvikio_domain>(), &attribs);
92
#endif
0 commit comments