compute-runtime/shared/source/sku_info/definitions/sku_info.h

41 lines
805 B
C++

/*
* Copyright (C) 2019-2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "shared/source/helpers/hash.h"
#include "shared/source/sku_info/sku_info_base.h"
#include <bitset>
namespace NEO {
constexpr inline size_t bcsInfoMaskSize = 1u;
using BcsInfoMask = std::bitset<bcsInfoMaskSize>;
struct FeatureTable : FeatureTableBase {
BcsInfoMask ftrBcsInfo = 0;
uint64_t asHash() const {
Hash hash;
hash.update(reinterpret_cast<const char *>(&packed), sizeof(packed));
return hash.finish();
}
};
struct WorkaroundTable : WorkaroundTableBase {
uint64_t asHash() const {
Hash hash;
hash.update(reinterpret_cast<const char *>(&packed), sizeof(packed));
return hash.finish();
}
};
} // namespace NEO