mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
Remove redundant TSP completion tracking logic
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
d7cea99868
commit
080b1e2f66
@@ -31,7 +31,7 @@ void TimestampPacketContainer::resolveDependencies(bool clearAllDependencies) {
|
||||
std::vector<TagNodeBase *> pendingNodes;
|
||||
|
||||
for (auto node : timestampPacketNodes) {
|
||||
if (node->canBeReleased() || clearAllDependencies) {
|
||||
if (clearAllDependencies) {
|
||||
node->returnTag();
|
||||
} else {
|
||||
pendingNodes.push_back(node);
|
||||
|
||||
@@ -49,20 +49,6 @@ class TimestampPackets : public TagTypeBase {
|
||||
|
||||
static constexpr size_t getSinglePacketSize() { return sizeof(Packet); }
|
||||
|
||||
bool isCompleted() const {
|
||||
if (DebugManager.flags.DisableAtomicForPostSyncs.get() == 1) {
|
||||
return false;
|
||||
}
|
||||
|
||||
for (uint32_t i = 0; i < packetsUsed; i++) {
|
||||
if (packets[i].contextEnd == 1) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
void initialize() {
|
||||
for (auto &packet : packets) {
|
||||
packet.contextStart = 1u;
|
||||
|
||||
@@ -41,7 +41,6 @@ void TagNodeBase::returnTag() {
|
||||
|
||||
bool TagNodeBase::canBeReleased() const {
|
||||
return (!doNotReleaseNodes) &&
|
||||
(isCompleted()) &&
|
||||
(getImplicitGpuDependenciesCount() == getImplicitCpuDependenciesCount());
|
||||
}
|
||||
|
||||
|
||||
@@ -61,7 +61,6 @@ class TagNodeBase : public NonCopyableOrMovableClass {
|
||||
const TagAllocatorBase *getAllocator() const { return allocator; }
|
||||
|
||||
// TagType specific calls
|
||||
virtual bool isCompleted() const = 0;
|
||||
virtual void assignDataToAllTimestamps(uint32_t packetIndex, void *source) = 0;
|
||||
|
||||
virtual size_t getGlobalStartOffset() const = 0;
|
||||
@@ -121,8 +120,6 @@ class TagNode : public TagNodeBase, public IDNode<TagNode<TagType>> {
|
||||
|
||||
void assignDataToAllTimestamps(uint32_t packetIndex, void *source) override;
|
||||
|
||||
bool isCompleted() const override;
|
||||
|
||||
size_t getGlobalStartOffset() const override;
|
||||
size_t getContextStartOffset() const override;
|
||||
size_t getContextEndOffset() const override;
|
||||
|
||||
@@ -280,15 +280,6 @@ void TagNode<TagType>::assignDataToAllTimestamps(uint32_t packetIndex, void *sou
|
||||
}
|
||||
}
|
||||
|
||||
template <typename TagType>
|
||||
bool TagNode<TagType>::isCompleted() const {
|
||||
if constexpr (TagType::getTagNodeType() == TagNodeType::TimestampPacket) {
|
||||
return tagForCpuAccess->isCompleted();
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
template <typename TagType>
|
||||
MetricsLibraryApi::QueryHandle_1_0 &TagNode<TagType>::getQueryHandleRef() const {
|
||||
if constexpr (TagType::getTagNodeType() == TagNodeType::HwPerfCounter) {
|
||||
|
||||
Reference in New Issue
Block a user