Skip to content

[SYCL][XPTI] Memory Transfer event instrumentation #6972

Open
@and7mw

Description

@and7mw

Hello!

MemCpyCommand::emitInstrumentationData():

xpti::addMetadata(CmdTraceEvent, "copy_from",
reinterpret_cast<size_t>(
getSyclObjImpl(MSrcQueue->get_device()).get()));
xpti::addMetadata(
CmdTraceEvent, "copy_to",
reinterpret_cast<size_t>(getSyclObjImpl(MQueue->get_device()).get()));

and
MemCpyCommandHost::emitInstrumentationData():
xpti::addMetadata(CmdTraceEvent, "copy_from",
reinterpret_cast<size_t>(
getSyclObjImpl(MSrcQueue->get_device()).get()));
xpti::addMetadata(
CmdTraceEvent, "copy_to",
reinterpret_cast<size_t>(getSyclObjImpl(MQueue->get_device()).get()));

add copy_from and copy_to metadata as pointer to device.

Is it expected behaviour?

I would expect that device id or device name should be add.

This behaviour was introduced after merge this PR: #4998
@alexbatashev could you take a look please?

Environment:

Question: Is there any way knowing the device ID to get its name?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions