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

30 lines
508 B
C++

/*
* Copyright (C) 2023 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "sku_info.h"
#include "shared/source/helpers/hash.h"
namespace NEO {
uint64_t FeatureTable::asHash() const {
Hash hash;
hash.update(reinterpret_cast<const char *>(&packed), sizeof(packed));
return hash.finish();
}
uint64_t WorkaroundTable::asHash() const {
Hash hash;
hash.update(reinterpret_cast<const char *>(&packed), sizeof(packed));
return hash.finish();
}
} // namespace NEO