Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion cpp/src/nvtx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ void NvtxManager::rename_current_thread(std::string_view new_name) noexcept
attribs.identifierType = NVTX_RESOURCE_TYPE_GENERIC_THREAD_NATIVE;
attribs.identifier.ullValue = tid;
attribs.messageType = NVTX_MESSAGE_TYPE_ASCII;
attribs.message.ascii = ss.str().c_str();
auto st = ss.str();
attribs.message.ascii = st.c_str();
nvtxResourceHandle_t handle =
nvtxDomainResourceCreate(nvtx3::domain::get<libkvikio_domain>(), &attribs);
#endif
Expand Down