File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -83,10 +83,12 @@ try {
83
83
%endfor
84
84
%endfor
85
85
86
+ namespace {
86
87
// This uselessFunc is needed to ensure that pthread is linked correctly against
87
88
// ur_loader.so for gcc-9
88
89
void uselessFunc() {
89
90
std::thread UselessThread([]{});
90
91
}
92
+ }
91
93
92
94
} // extern "C"
Original file line number Diff line number Diff line change @@ -7743,10 +7743,12 @@ ur_result_t UR_APICALL urUsmP2PPeerAccessGetInfoExp(
7743
7743
return exceptionToResult (std::current_exception ());
7744
7744
}
7745
7745
7746
+ namespace {
7746
7747
// This uselessFunc is needed to ensure that pthread is linked correctly against
7747
7748
// ur_loader.so for gcc-9
7748
7749
void uselessFunc () {
7749
7750
std::thread UselessThread ([] {});
7750
7751
}
7752
+ } // namespace
7751
7753
7752
7754
} // extern "C"
You can’t perform that action at this time.
0 commit comments