mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 12:23:05 +08:00
Add neon intrinsics for aarch64
Related-To: NEO-6452 Signed-off-by: Sebastian Luzynski <sebastian.jozef.luzynski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
c7d8915dd4
commit
cf906030ac
@@ -11,10 +11,12 @@
|
||||
|
||||
#include <cstdint>
|
||||
#include <fstream>
|
||||
#include <sys/auxv.h>
|
||||
|
||||
namespace NEO {
|
||||
|
||||
void cpuid_linux_wrapper(int cpuInfo[4], int functionId) {
|
||||
cpuInfo[0] = getauxval(AT_HWCAP);
|
||||
}
|
||||
|
||||
void cpuidex_linux_wrapper(int *cpuInfo, int functionId, int subfunctionId) {
|
||||
@@ -24,7 +26,7 @@ void get_cpu_flags_linux(std::string &cpuFlags) {
|
||||
std::ifstream cpuinfo(std::string(Os::sysFsProcPathPrefix) + "/cpuinfo");
|
||||
std::string line;
|
||||
while (std::getline(cpuinfo, line)) {
|
||||
if (line.substr(0, 5) == "flags") {
|
||||
if (line.substr(0, 8) == "Features") {
|
||||
cpuFlags = line;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user