Skip to content

Commit b12e400

Browse files
committed
Merge of 'upstream/sycl' into urlog and minor fixes
2 parents 146e801 + ca2af37 commit b12e400

File tree

8 files changed

+11
-13
lines changed

8 files changed

+11
-13
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/scripts/templates/trcddi.cpp.mako

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ namespace ur_tracing_layer
4848
uint64_t instance = getContext()->notify_begin(${th.make_func_etor(n, tags, obj)}, "${th.make_func_name(n, tags, obj)}", &params);
4949

5050
auto &logger = getContext()->logger;
51-
logger.info(" ---> ${th.make_func_name(n, tags, obj)}\n");
51+
URLOG_(logger, INFO, " ---> ${th.make_func_name(n, tags, obj)}\n");
5252

5353
${x}_result_t result = ${th.make_pfn_name(n, tags, obj)}( ${", ".join(th.make_param_lines(n, tags, obj, format=["name"]))} );
5454

@@ -57,7 +57,7 @@ namespace ur_tracing_layer
5757
if (logger.getLevel() <= logger::Level::INFO) {
5858
std::ostringstream args_str;
5959
ur::extras::printFunctionParams(args_str, ${th.make_func_etor(n, tags, obj)}, &params);
60-
logger.info(" <--- ${th.make_func_name(n, tags, obj)}({}) -> {};\n", args_str.str(), result);
60+
URLOG_(logger, INFO, " <--- ${th.make_func_name(n, tags, obj)}({}) -> {};\n", args_str.str(), result);
6161
}
6262

6363
return result;

unified-runtime/scripts/templates/valddi.cpp.mako

+2-2
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ namespace ur_validation_layer
9393
%>
9494
%if tp_input_handle_funcs and not is_related_create_get_retain_release_func:
9595
if (getContext()->enableLifetimeValidation && !getContext()->refCountContext->isReferenceValid(${tp['name']})) {
96-
URLOG_CTX_INVALID_REFERENCES(${tp['name']});
96+
URLOG_CTX_INVALID_REFERENCE(${tp['name']});
9797
}
9898
%endif
9999
%endfor
@@ -234,7 +234,7 @@ namespace ur_validation_layer
234234

235235
${x}_result_t context_t::tearDown() {
236236
if (enableLeakChecking) {
237-
getContext()->refCountContext->logInvalidReferences();
237+
URLOG_CTX_INVALID_REFERENCES();
238238
}
239239

240240
return ${X}_RESULT_SUCCESS;

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ void checkErrorUR(nvmlReturn_t Result, const char *Function, int Line,
9595
<< "\n\tDescription: " << ErrorString
9696
<< "\n\tFunction: " << Function << "\n\tSource Location: " << File
9797
<< ":" << Line << "\n";
98-
logger::error("{}", SS.str());
98+
URLOG(ERR, "{}", SS.str());
9999

100100
if (std::getenv("PI_CUDA_ABORT") != nullptr ||
101101
std::getenv("UR_CUDA_ABORT") != nullptr) {

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ ur_result_t MemBuffer::getHandle(ur_device_handle_t Device, char *&Handle) {
105105
Size, AllocType::DEVICE_USM,
106106
ur_cast<void **>(&Allocation));
107107
if (URes != UR_RESULT_SUCCESS) {
108-
URLOG_CTX(ERR, "Failed to allocate {} bytes memory for buffer {}",
109-
Size, this);
108+
URLOG_CTX(ERR, "Failed to allocate {} bytes memory for buffer {}", Size,
109+
this);
110110
return URes;
111111
}
112112

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

+1-2
Original file line numberDiff line numberDiff line change
@@ -294,8 +294,7 @@ ur_result_t TsanInterceptor::prepareLaunch(std::shared_ptr<ContextInfo> &,
294294
ur_result_t URes = getContext()->urDdiTable.Kernel.pfnSetArgPointer(
295295
Kernel, ArgIndex, nullptr, ArgPointer);
296296
if (URes != UR_RESULT_SUCCESS) {
297-
URLOG_CTX(ERR,
298-
"Failed to set buffer {} as the {} arg to kernel {}: {}",
297+
URLOG_CTX(ERR, "Failed to set buffer {} as the {} arg to kernel {}: {}",
299298
ur_cast<ur_mem_handle_t>(MemBuffer.get()), ArgIndex, Kernel,
300299
URes);
301300
}

0 commit comments

Comments
 (0)