Development version, not published. Built from main: it shows what is coming (fixes, descriptions written since the last tag) and can change with every commit. Go to the stable version 0.1.0-beta.11
NkCPUFeatures.h
Include
#include "NKPlatform/NkCPUFeatures.h"Namespace
nkentseu::platformLink (Jenga)
nkentseudependson(["NKPlatform"])Types
CacheInfo | Information about the CPU cache hierarchy |
CPUTopology | Information about the processor topology |
SIMDFeatures | Detection of the available SIMD extensions |
ExtendedFeatures | Additional CPU features (security, memory, performance) |
CPUFeatures | Complete structure of the detected CPU features |
Functions · 10
NkGetCPUFeatures | Gets the CPUFeatures instance through the Nk alias |
NkHasSSE2 | Checks SSE2 support at run time |
NkHasAVX | Checks AVX support at run time |
NkHasAVX2 | Checks AVX2 support at run time |
NkHasAVX512 | Checks AVX-512 support at run time |
NkHasNEON | Checks NEON support at run time |
NkHasFMA | Checks FMA support at run time |
NkGetCacheLineSize | Gets the cache line size in bytes |
NkGetPhysicalCoreCount | Gets the number of physical cores |
NkGetLogicalCoreCount | Gets the number of logical cores (threads) |
Aliases · 5
NkCacheInfo | Alias for CacheInfo (Nk API compatibility) |
NkCPUTopology | Alias for CPUTopology (Nk API compatibility) |
NkSIMDFeatures | Alias for SIMDFeatures (Nk API compatibility) |
NkExtendedFeatures | Alias for ExtendedFeatures (Nk API compatibility) |
NkCPUFeatures | Alias for CPUFeatures (Nk API compatibility) |
Member details
using NkCacheInfo = CacheInfo
Alias for CacheInfo (Nk API compatibility)
Source : NkCPUFeatures.h, line 537
using NkCPUTopology = CPUTopology
Alias for CPUTopology (Nk API compatibility)
Source : NkCPUFeatures.h, line 540
using NkSIMDFeatures = SIMDFeatures
Alias for SIMDFeatures (Nk API compatibility)
Source : NkCPUFeatures.h, line 543
using NkExtendedFeatures = ExtendedFeatures
Alias for ExtendedFeatures (Nk API compatibility)
Source : NkCPUFeatures.h, line 546
using NkCPUFeatures = CPUFeatures
Alias for CPUFeatures (Nk API compatibility)
Source : NkCPUFeatures.h, line 549
const NkCPUFeatures &NkGetCPUFeatures()
Gets the CPUFeatures instance through the Nk alias
Source : NkCPUFeatures.h, line 562
bool NkHasSSE2()
Checks SSE2 support at run time
Source : NkCPUFeatures.h, line 571
bool NkHasAVX()
Checks AVX support at run time
Source : NkCPUFeatures.h, line 580
bool NkHasAVX2()
Checks AVX2 support at run time
Source : NkCPUFeatures.h, line 589
bool NkHasAVX512()
Checks AVX-512 support at run time
Source : NkCPUFeatures.h, line 598
bool NkHasNEON()
Checks NEON support at run time
Source : NkCPUFeatures.h, line 607
bool NkHasFMA()
Checks FMA support at run time
Source : NkCPUFeatures.h, line 616
int32_t NkGetCacheLineSize()
Gets the cache line size in bytes
Source : NkCPUFeatures.h, line 625
int32_t NkGetPhysicalCoreCount()
Gets the number of physical cores
Source : NkCPUFeatures.h, line 634
int32_t NkGetLogicalCoreCount()
Gets the number of logical cores (threads)
Source : NkCPUFeatures.h, line 643