Skip to content

Commit

Permalink
[SYCL] Fix post-commit build failure (intel#10206)
Browse files Browse the repository at this point in the history
Signed-off-by: Tikhomirova, Kseniya <kseniya.tikhomirova@intel.com>
  • Loading branch information
KseniyaTikhomirova committed Jul 5, 2023
1 parent b2d0837 commit d4721c5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion sycl/tools/sycl-sanitize/collector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ XPTI_CALLBACK_API void xptiTraceInit(unsigned int /*major_version*/,
tpCallback);
auto &GS = USMAnalyzer::getInstance();
GS.changeTerminationOnErrorState(true);
GS.printToErrorStream(true);
GS.printToErrorStream();
GS.setupUSMHandlers();
}
}
Expand Down
14 changes: 6 additions & 8 deletions sycl/tools/xpti_helpers/usm_analyzer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ class USMAnalyzer {
TerminateOnError = EnableTermination;
}

void printToErrorStream(bool Mode) { PrintToError = true; }
void printToErrorStream() { PrintToError = true; }

void setupUSMHandlers() {
ArgHandlerPostCall.set_piextUSMHostAlloc(USMAnalyzer::handleUSMHostAlloc);
Expand Down Expand Up @@ -382,10 +382,9 @@ class USMAnalyzer {

static void handleUSMEnqueueFill2D(const pi_plugin &,
std::optional<pi_result>, pi_queue,
void *ptr, size_t pitch,
size_t pattern_size, const void *pattern,
size_t width, size_t height, pi_uint32,
const pi_event *, pi_event *) {
void *ptr, size_t pitch, size_t,
const void *, size_t width, size_t height,
pi_uint32, const pi_event *, pi_event *) {
// TO DO: add checks for pattern validity
CheckPointerValidness("input parameter", ptr, pitch, width, height,
"ext_oneapi_fill2d");
Expand Down Expand Up @@ -413,9 +412,8 @@ class USMAnalyzer {
}

static void handleKernelSetArgPointer(const pi_plugin &,
std::optional<pi_result>,
pi_kernel kernel, pi_uint32 arg_index,
size_t arg_size,
std::optional<pi_result>, pi_kernel,
pi_uint32 arg_index, size_t arg_size,
const void *arg_value) {
// no clarity how to handle complex types so check only simple pointers here
if (arg_size == sizeof(arg_value)) {
Expand Down

0 comments on commit d4721c5

Please sign in to comment.