Skip to content

Commit 5a4317e

Browse files
author
Hugh Delaney
committed
Add use of threads so -lpthread works when building
1 parent 4dbbe01 commit 5a4317e

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

source/loader/ur_lib.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#include <atomic>
2727
#include <mutex>
2828
#include <set>
29+
#include <thread>
2930
#include <vector>
3031

3132
struct ur_loader_config_handle_t_ {

source/loader/ur_libapi.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7743,4 +7743,8 @@ ur_result_t UR_APICALL urUsmP2PPeerAccessGetInfoExp(
77437743
return exceptionToResult(std::current_exception());
77447744
}
77457745

7746+
void uselessFunc() {
7747+
std::thread NullThread([](){});
7748+
}
7749+
77467750
} // extern "C"

0 commit comments

Comments
 (0)