Implement r_pod_cast function

Related-To: NEO-6210
Signed-off-by: Fabian Zwolinski <fabian.zwolinski@intel.com>
This commit is contained in:
Fabian Zwolinski
2021-10-11 17:50:20 +02:00
committed by Compute-Runtime-Automation
parent 4286b3a55c
commit 9276f689f8
3 changed files with 32 additions and 2 deletions

View File

@@ -8,6 +8,7 @@
#include "shared/source/compiler_interface/compiler_cache.h"
#include "shared/source/helpers/aligned_memory.h"
#include "shared/source/helpers/casts.h"
#include "shared/source/helpers/file_io.h"
#include "shared/source/helpers/hash.h"
#include "shared/source/helpers/hw_info.h"
@@ -36,9 +37,9 @@ const std::string CompilerCache::getCachedFileName(const HardwareInfo &hwInfo, c
hash.update(&*internalOptions.begin(), internalOptions.size());
hash.update("----", 4);
hash.update(reinterpret_cast<const char *>(&hwInfo.platform), sizeof(hwInfo.platform));
hash.update(r_pod_cast<const char *>(&hwInfo.platform), sizeof(hwInfo.platform));
hash.update("----", 4);
hash.update(reinterpret_cast<const char *>(&hwInfo.featureTable.packed), sizeof(hwInfo.featureTable.packed));
hash.update(r_pod_cast<const char *>(&hwInfo.featureTable.packed), sizeof(hwInfo.featureTable.packed));
hash.update("----", 4);
hash.update(reinterpret_cast<const char *>(&hwInfo.workaroundTable), sizeof(hwInfo.workaroundTable));