mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 09:14:47 +08:00
Implement r_pod_cast function
Related-To: NEO-6210 Signed-off-by: Fabian Zwolinski <fabian.zwolinski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
4286b3a55c
commit
9276f689f8
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user