| @@ -43,6 +43,13 @@ static int __builtin_cpu_supports(char* arg) | |||||
| } | } | ||||
| #endif | #endif | ||||
| #define CPU_UNKNOWN 0 | |||||
| #define CPU_POWER6 6 | |||||
| #define CPU_POWER7 7 | |||||
| #define CPU_POWER8 8 | |||||
| #define CPU_POWER9 9 | |||||
| #define CPU_POWER10 10 | |||||
| #if defined(C_PGI) || defined(__clang__) | #if defined(C_PGI) || defined(__clang__) | ||||
| /* | /* | ||||
| * NV HPC compilers do not yet implement __builtin_cpu_is(). | * NV HPC compilers do not yet implement __builtin_cpu_is(). | ||||
| @@ -61,13 +68,6 @@ static int __builtin_cpu_supports(char* arg) | |||||
| * NOTE NV HPC SDK compilers only support POWER8 and POWER9 at this time | * NOTE NV HPC SDK compilers only support POWER8 and POWER9 at this time | ||||
| */ | */ | ||||
| #define CPU_UNKNOWN 0 | |||||
| #define CPU_POWER5 5 | |||||
| #define CPU_POWER6 6 | |||||
| #define CPU_POWER8 8 | |||||
| #define CPU_POWER9 9 | |||||
| #define CPU_POWER10 10 | |||||
| static struct { | static struct { | ||||
| uint32_t pvr_mask; | uint32_t pvr_mask; | ||||
| uint32_t pvr_value; | uint32_t pvr_value; | ||||
| @@ -191,13 +191,6 @@ static int __builtin_cpu_is(const char *cpu) { | |||||
| #ifdef _AIX | #ifdef _AIX | ||||
| #include <sys/systemcfg.h> | #include <sys/systemcfg.h> | ||||
| #define CPU_UNKNOWN 0 | |||||
| #define CPU_POWER6 6 | |||||
| #define CPU_POWER7 7 | |||||
| #define CPU_POWER8 8 | |||||
| #define CPU_POWER9 9 | |||||
| #define CPU_POWER10 10 | |||||
| static int cpuid(void) | static int cpuid(void) | ||||
| { | { | ||||
| int arch = _system_configuration.implementation; | int arch = _system_configuration.implementation; | ||||