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
This commit is contained in:
German Andryeyev
2020-10-16 14:20:58 -04:00
parent 17d2e5cf56
commit bd340d8cbf
6 changed files with 47 additions and 11 deletions
+4 -2
View File
@@ -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 {