SWDEV-422207 - Optimize graph end detection

- Do not use extra barrier to detect graph end. If its a kernel node we
can use a completion signal for the last packet. Saves roughly 6us for
Phantom testcase per graph launch.

Change-Id: I5e0c2479d9964fbeda86ed97533f6718f49a7f91
이 커밋은 다음에 포함됨:
Saleel Kudchadker가 2023-11-10 11:57:02 -05:00를 커밋했습니다
1 부모 f06368fd04
커밋 c3bd229f4f
3 파일이 변경됨
+42 -13

검색과 일치하는 파일 없음

+8 -3
파일 보기
@@ -1261,14 +1261,19 @@ class Marker : public Command {
};
class AccumulateCommand : public Command {
private:
uint8_t* lastPacket_;
public:
//! Create a new Marker
AccumulateCommand(HostQueue& queue, const EventWaitList& eventWaitList = nullWaitList,
const Event* waitingEvent = nullptr)
: Command(queue, CL_COMMAND_TASK, eventWaitList, 0, waitingEvent) {
const Event* waitingEvent = nullptr, uint8_t* lastPacket = nullptr)
: Command(queue, CL_COMMAND_TASK, eventWaitList, 0, waitingEvent),
lastPacket_(lastPacket)
{
profilingInfo_.multiple_ts_ = true;
}
// Return last packet
uint8_t* getLastPacket() const { return lastPacket_; }
//! The command implementation
virtual void submit(device::VirtualDevice& device) {
device.submitAccumulate(*this);