Skip to content

Commit 58ed2c0

Browse files
mantaionutfacebook-github-bot
authored andcommitted
Fixed use of designated initializers Windows (#976)
Summary: Fix CUPTI code not compiling on MSVC due to designated initializers not working on Windows. `C:\Work\pytorch\third_party\kineto\libkineto\src\CuptiActivityProfiler.cpp(658): error C7555: use of designated initializers requires at least '/std:c++20'` Pull Request resolved: #976 Reviewed By: aaronenyeshi Differential Revision: D61810245 Pulled By: sraikund16 fbshipit-source-id: 240a8163477e70b3a3cef0a78bc7cea260d5528e
1 parent 464bccf commit 58ed2c0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

libkineto/src/CuptiActivityProfiler.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -654,11 +654,11 @@ void CuptiActivityProfiler::handleCudaSyncActivity(
654654
if (isWaitEventSync(activity->type)) {
655655
// Defer logging wait event syncs till the end so we only
656656
// log these events if a stream has some GPU kernels on it.
657-
DeferredLogEntry entry{
658-
.device = device_id,
659-
.stream = activity->streamId,
660-
.logMe = log_event,
661-
};
657+
DeferredLogEntry entry;
658+
entry.device = device_id;
659+
entry.stream = activity->streamId;
660+
entry.logMe = log_event;
661+
662662
logQueue_.push_back(entry);
663663
} else {
664664
log_event();

0 commit comments

Comments
 (0)