Correct reported info in ROC profiler

OCL can't distinguish different copy types, but ROC profiler
expects SDMA transfer visibility. Add extra code to detect
a transfer with the host memory and substitute OCL command

Change-Id: I5290acd0e10bc082e00c1d4ae1474a075de7f165
Цей коміт міститься в:
German Andryeyev committed 2020-10-23 18:29:48 -04:00
1 джерело 17d2e5cf56
коміт bd340d8cbf
6 files changed
+47 -11

No files matched your search

+4 -2
Переглянути файл
@@ -213,8 +213,8 @@ class Command : public Event {
//! Next GPU command in the queue list
Command* next_;
const cl_command_type type_; //!< This command's OpenCL type.
volatile int32_t exception_; //!< The first raised exception.
cl_command_type type_; //!< This command's OpenCL type.
volatile int32_t exception_; //!< The first raised exception.
void* data_;
protected:
@@ -298,6 +298,8 @@ class Command : public Event {
//! Get command wait bits
uint32_t getWaitBits() const { return commandWaitBits_; }
void OverrrideCommandType(cl_command_type type) { type_ = type; }
};
class UserEvent : public Command {