STAPL API Reference          
Overview   Containers   Algorithms   Views   Skeletons   Run-Time System
Modules     Classes    
Macros
platform.hpp File Reference
+ Include dependency graph for platform.hpp:
+ This graph shows which files directly or indirectly include this file:

Macros

#define STAPL_RUNTIME_DEFAULT_ALIGNMENT   (sizeof(void*))
 
#define STAPL_RUNTIME_CACHELINE_SIZE   64
 

Detailed Description

Detects the platform.

Defined macros for supported platforms are:

  1. STAPL_RUNTIME_LINUX_TARGET for GNU/Linux
  2. STAPL_RUNTIME_WINDOWS_TARGET for Windows
  3. STAPL_RUNTIME_SOLARIS_TARGET for Oracle Solaris
  4. STAPL_RUNTIME_ANDROID_TARGET for Android
  5. STAPL_RUNTIME_CRAY_TARGET for Cray
  6. STAPL_RUNTIME_CRAY_XE_TARGET for Cray XE/XK
  7. STAPL_RUNTIME_CRAY_XC30_TARGET for Cray XC30
  8. STAPL_RUNTIME_BG_TARGET for IBM Blue Gene
  9. STAPL_RUNTIME_BGP_TARGET for IBM Blue Gene/P
  10. STAPL_RUNTIME_BGQ_TARGET for IBM Blue Gene/Q

STAPL_RUNTIME_DEFAULT_ALIGNMENT has the default alignment value for the current platform.

STAPL_RUNTIME_CACHELINE_SIZE has the value for the cache-line size.