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
Dieser Commit ist enthalten in:
German Andryeyev
2020-10-16 14:20:58 -04:00
Ursprung 17d2e5cf56
Commit bd340d8cbf
6 geänderte Dateien mit 47 neuen und 11 gelöschten Zeilen
+5
Datei anzeigen
@@ -295,6 +295,7 @@ class VirtualGPU : public device::VirtualDevice {
void hasPendingDispatch() { hasPendingDispatch_ = true; }
void addSystemScope() { addSystemScope_ = true; }
void SetCopyCommandType(cl_command_type type) { copy_command_type_ = type; }
// } roc OpenCL integration
private:
@@ -403,6 +404,10 @@ class VirtualGPU : public device::VirtualDevice {
//!< bit-vector representing the CU mask. Each active bit represents using one CU
const std::vector<uint32_t> cuMask_;
amd::CommandQueue::Priority priority_; //!< The priority for the hsa queue
cl_command_type copy_command_type_; //!< Type of the copy command, used for ROC profiler
//!< OCL doesn't distinguish diffrent copy types,
//!< but ROC profiler expects D2H or H2D detection
};
template <typename T>