Skip to content

Commit

Permalink
Merge pull request #1606 from nrspruit/fix_prints_0_9_2
Browse files Browse the repository at this point in the history
[L0] Fix merge conflict error for urPrint in L0
  • Loading branch information
kbenzie committed May 14, 2024
2 parents b88d0a8 + c33de56 commit d9748d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
7 changes: 2 additions & 5 deletions source/adapters/level_zero/context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#include <string.h>

#include "context.hpp"
#include "logger/ur_logger.hpp"
#include "queue.hpp"
#include "ur_level_zero.hpp"

Expand Down Expand Up @@ -176,8 +175,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urContextSetExtendedDeleter(
std::ignore = Context;
std::ignore = Deleter;
std::ignore = UserData;
logger::error(logger::LegacyMessage("[UR][L0] {} function not implemented!"),
"{} function not implemented!", __FUNCTION__);
urPrint("[UR][L0] %s function not implemented!\n", __FUNCTION__);
return UR_RESULT_ERROR_UNSUPPORTED_FEATURE;
}

Expand Down Expand Up @@ -513,8 +511,7 @@ ur_result_t ur_context_handle_t_::getFreeSlotInExistingOrNewPool(
ZeEventPoolDesc.flags |= ZE_EVENT_POOL_FLAG_HOST_VISIBLE;
if (ProfilingEnabled)
ZeEventPoolDesc.flags |= ZE_EVENT_POOL_FLAG_KERNEL_TIMESTAMP;
logger::debug("ze_event_pool_desc_t flags set to: {}",
ZeEventPoolDesc.flags);
urPrint("ze_event_pool_desc_t flags set to: %d\n", ZeEventPoolDesc.flags);

std::vector<ze_device_handle_t> ZeDevices;
if (ZeDevice) {
Expand Down
3 changes: 1 addition & 2 deletions source/adapters/level_zero/event.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#include "command_buffer.hpp"
#include "common.hpp"
#include "event.hpp"
#include "logger/ur_logger.hpp"
#include "ur_level_zero.hpp"

void printZeEventList(const _ur_ze_event_list_t &UrZeEventList) {
Expand Down Expand Up @@ -697,7 +696,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urEventWait(
die("The host-visible proxy event missing");

ze_event_handle_t ZeEvent = HostVisibleEvent->ZeEvent;
logger::debug("ZeEvent = {}", ur_cast<std::uintptr_t>(ZeEvent));
urPrint("ZeEvent = %#llx\n", ur_cast<std::uintptr_t>(ZeEvent));
// If this event was an inner batched event, then sync with
// the Queue instead of waiting on the event.
if (HostVisibleEvent->IsInnerBatchedEvent && Event->ZeBatchedQueue) {
Expand Down

0 comments on commit d9748d2

Please sign in to comment.