Skip to content

Commit 2bafb6a

Browse files
committed
Merge remote-tracking branch 'upstream/sycl' into urlog
2 parents 146e801 + ca2af37 commit 2bafb6a

File tree

6 files changed

+29
-6
lines changed

6 files changed

+29
-6
lines changed

.github/workflows/ur-source-checks.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
if: matrix.os == 'ubuntu-22.04'
3434
run: |
3535
sudo apt-get update
36-
sudo apt-get install -y doxygen
36+
sudo apt-get install -y doxygen libhwloc-dev
3737
3838
- name: "[Win] Install doxygen"
3939
if: matrix.os == 'windows-2022'
@@ -53,7 +53,6 @@ jobs:
5353
-DCMAKE_BUILD_TYPE=Debug
5454
-DUR_BUILD_TESTS=OFF
5555
-DUR_FORMAT_CPP_STYLE=ON
56-
-DUMF_DISABLE_HWLOC=ON
5756
5857
# Verifying license should be enough on a single OS
5958
- name: Verify that each source file contains a license

llvm/lib/SYCLLowerIR/ESIMD/ESIMDVerifier.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ class BuffDeleter {
9797
BuffDeleter() = delete;
9898
BuffDeleter(const BuffDeleter &) = delete;
9999
BuffDeleter(BuffDeleter &&) = delete;
100+
BuffDeleter &operator=(BuffDeleter &) = delete;
101+
BuffDeleter &operator=(BuffDeleter &&) = delete;
100102

101103
private:
102104
char *Buff;

sycl/cmake/modules/FetchUnifiedRuntime.cmake

-2
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,6 @@ if(IS_DIRECTORY "${UR_INTREE_SOURCE_DIR}")
8787
if(WIN32)
8888
set(UMF_BUILD_SHARED_LIBRARY OFF CACHE INTERNAL "Build UMF shared library")
8989
set(UMF_LINK_HWLOC_STATICALLY ON CACHE INTERNAL "static HWLOC")
90-
else()
91-
set(UMF_DISABLE_HWLOC ${SYCL_UMF_DISABLE_HWLOC} CACHE INTERNAL "Disable hwloc for UMF")
9290
endif()
9391
add_subdirectory(${UNIFIED_RUNTIME_SOURCE_DIR} ${UR_INTREE_BINARY_DIR})
9492
elseif(SYCL_UR_USE_FETCH_CONTENT)

unified-runtime/source/adapters/cuda/common.cpp

+24
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,30 @@ void checkErrorUR(nvmlReturn_t Result, const char *Function, int Line,
105105
throw mapErrorUR(Result);
106106
}
107107

108+
void checkErrorUR(nvmlReturn_t Result, const char *Function, int Line,
109+
const char *File) {
110+
if (Result == NVML_SUCCESS) {
111+
return;
112+
}
113+
114+
const char *ErrorString = nullptr;
115+
ErrorString = nvmlErrorString(Result);
116+
std::stringstream SS;
117+
SS << "\nUR NVML ERROR:"
118+
<< "\n\tValue: " << Result
119+
<< "\n\tDescription: " << ErrorString
120+
<< "\n\tFunction: " << Function << "\n\tSource Location: " << File
121+
<< ":" << Line << "\n";
122+
logger::error("{}", SS.str());
123+
124+
if (std::getenv("PI_CUDA_ABORT") != nullptr ||
125+
std::getenv("UR_CUDA_ABORT") != nullptr) {
126+
std::abort();
127+
}
128+
129+
throw mapErrorUR(Result);
130+
}
131+
108132
void checkErrorUR(ur_result_t Result, const char *Function, int Line,
109133
const char *File) {
110134
if (Result == UR_RESULT_SUCCESS) {

unified-runtime/source/loader/layers/sanitizer/tsan/tsan_ddi.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1008,7 +1008,7 @@ ur_result_t urKernelSetArgValue(
10081008
const ur_kernel_arg_value_properties_t *pProperties,
10091009
/// [in] argument value represented as matching arg type.
10101010
const void *pArgValue) {
1011-
URLOG_CTX(DEBUG, "==== urKernelSetArgValue");
1011+
URLOG_CTX(DEBUG, "==== urKernelSetArgValue");
10121012

10131013
std::shared_ptr<MemBuffer> MemBuffer;
10141014
if (argSize == sizeof(ur_mem_handle_t) &&

unified-runtime/source/loader/layers/tracing/ur_trcddi.cpp

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)