From 0115a1fcfc0ed94edeaff71918640f9ebb8d44a0 Mon Sep 17 00:00:00 2001 From: Sergey Semenov Date: Mon, 16 Mar 2020 16:48:20 +0300 Subject: [PATCH] [SYCL][NFC] Fix execution graph dump Replace new lines with escape sequences. Signed-off-by: Sergey Semenov --- sycl/source/detail/scheduler/commands.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sycl/source/detail/scheduler/commands.cpp b/sycl/source/detail/scheduler/commands.cpp index a845e9362f7b2..965285ce75ddc 100644 --- a/sycl/source/detail/scheduler/commands.cpp +++ b/sycl/source/detail/scheduler/commands.cpp @@ -1055,7 +1055,7 @@ cl_int UpdateHostRequirementCommand::enqueueImp() { void UpdateHostRequirementCommand::printDot(std::ostream &Stream) const { Stream << "\"" << this << "\" [style=filled, fillcolor=\"#f1337f\", label=\""; - Stream << "ID = " << this << "\n"; + Stream << "ID = " << this << "\\n"; Stream << "UPDATE REQ ON " << deviceToString(MQueue->get_device()) << "\\n"; bool IsReqOnBuffer = MDstReq.MSYCLMemObj->getType() == SYCLMemObjI::MemObjType::BUFFER; @@ -1361,7 +1361,7 @@ void ExecCGCommand::emitInstrumentationData() { void ExecCGCommand::printDot(std::ostream &Stream) const { Stream << "\"" << this << "\" [style=filled, fillcolor=\"#AFFF82\", label=\""; - Stream << "ID = " << this << "\n"; + Stream << "ID = " << this << "\\n"; Stream << "EXEC CG ON " << deviceToString(MQueue->get_device()) << "\\n"; switch (MCommandGroup->getType()) {