#pragma once
#define CACHELINE_SIZE …
#if !defined(PAGE_SIZE)
#define PAGE_SIZE …
#endif
#define PAGE_SIZE_2M …
#define PAGE_SIZE_4K …
#include "platform.h"
#if defined (__AVX512VL__)
#define isa …
#define ISA …
#define ISA_STR …
#elif defined (__AVX2__)
#define isa …
#define ISA …
#define ISA_STR …
#elif defined(__AVXI__)
#define isa …
#define ISA …
#define ISA_STR …
#elif defined(__AVX__)
#define isa …
#define ISA …
#define ISA_STR …
#elif defined (__SSE4_2__)
#define isa …
#define ISA …
#define ISA_STR …
#elif defined(__SSE2__) || defined(__SSE3__) || defined(__SSSE3__)
#define isa …
#define ISA …
#define ISA_STR …
#elif defined(__SSE__)
#define isa …
#define ISA …
#define ISA_STR …
#elif defined(__ARM_NEON)
#define isa …
#define ISA …
#define ISA_STR …
#else
#error Unknown ISA
#endif
namespace embree
{
enum class CPU
{ … };
std::string getExecutableFileName();
std::string getPlatformName();
std::string getCompilerName();
std::string getCPUVendor();
CPU getCPUModel();
std::string stringOfCPUModel(CPU model);
static const int CPU_FEATURE_SSE = …;
static const int CPU_FEATURE_SSE2 = …;
static const int CPU_FEATURE_SSE3 = …;
static const int CPU_FEATURE_SSSE3 = …;
static const int CPU_FEATURE_SSE41 = …;
static const int CPU_FEATURE_SSE42 = …;
static const int CPU_FEATURE_POPCNT = …;
static const int CPU_FEATURE_AVX = …;
static const int CPU_FEATURE_F16C = …;
static const int CPU_FEATURE_RDRAND = …;
static const int CPU_FEATURE_AVX2 = …;
static const int CPU_FEATURE_FMA3 = …;
static const int CPU_FEATURE_LZCNT = …;
static const int CPU_FEATURE_BMI1 = …;
static const int CPU_FEATURE_BMI2 = …;
static const int CPU_FEATURE_AVX512F = …;
static const int CPU_FEATURE_AVX512DQ = …;
static const int CPU_FEATURE_AVX512PF = …;
static const int CPU_FEATURE_AVX512ER = …;
static const int CPU_FEATURE_AVX512CD = …;
static const int CPU_FEATURE_AVX512BW = …;
static const int CPU_FEATURE_AVX512VL = …;
static const int CPU_FEATURE_AVX512IFMA = …;
static const int CPU_FEATURE_AVX512VBMI = …;
static const int CPU_FEATURE_XMM_ENABLED = …;
static const int CPU_FEATURE_YMM_ENABLED = …;
static const int CPU_FEATURE_ZMM_ENABLED = …;
static const int CPU_FEATURE_NEON = …;
static const int CPU_FEATURE_NEON_2X = …;
int getCPUFeatures();
std::string stringOfCPUFeatures(int features);
std::string supportedTargetList (int isa);
static const int SSE = …;
static const int SSE2 = …;
static const int SSE3 = …;
static const int SSSE3 = …;
static const int SSE41 = …;
static const int SSE42 = …;
static const int AVX = …;
static const int AVXI = …;
static const int AVX2 = …;
static const int AVX512 = …;
static const int NEON = …;
static const int NEON_2X = …;
std::string stringOfISA(int features);
unsigned int getNumberOfLogicalThreads();
int getTerminalWidth();
double getSeconds();
void sleepSeconds(double t);
size_t getVirtualMemoryBytes();
size_t getResidentMemoryBytes();
}