Difference between pages "r7.1.1:Define BENCHMARK PAL MEMORY TYPE" and "r7.1.1:Define BENCHMARK PAL MEMORY TYPE STRING"

From liblfds.org
(Difference between pages)
Jump to navigation Jump to search
m (1 revision imported)
 
m (1 revision imported)
 
Line 1: Line 1:
{{DISPLAYTITLE:define BENCHMARK_PAL_MEMORY_TYPE}}
{{DISPLAYTITLE:define BENCHMARK_PAL_MEMORY_TYPE_STRING}}
==Source File==
==Source File==
  └───test_and_benchmark
  └───test_and_benchmark
Line 7: Line 7:


==Define==
==Define==
  #define BENCHMARK_PAL_OS_STRING BENCHMARK_MEMORY_TYPE_SMP
  #define BENCHMARK_PAL_MEMORY_TYPE_STRING "SMP"
   
   
  or
  or  
   
   
  #define BENCHMARK_PAL_OS_STRING BENCHMARK_MEMORY_TYPE_NUMA
  #define BENCHMARK_PAL_MEMORY_TYPE_STRING "NUMA"


==Example==
==Example==
  #define BENCHMARK_PAL_OS_STRING BENCHMARK_MEMORY_TYPE_NUMA
  #define BENCHMARK_PAL_MEMORY_TYPE_STRING "NUMA"


==Optionality==
==Optionality==
This define is mandatory.  The programme will compile if it is not set, but it will fail to run, as no memory allocations will occur.
This define is mandatory and the programme cannot compile if it is not set.


==Notes==
==Notes==
This define indicates whether the platform is SMP or NUMA.  It's not a good solution to this need - this information can and already partially is in fact be provided through the makefile - but the ''benchmark'' programme was never intended to be ported by end-users, and so the porting abstraction layer is a bit of an afterthoughtGiven the complexty of the ''libbenchmark'' API, what will possibly happen in the next release is that users will not access the ''libbenchmark'' API, but, rather, ''benchmark'' will be given a proper porting abstraction layer, and it will be the main way users port benchmarking functionality.
This define is used internally to form up the version stringThe value should be "SMP" on SMP systems and "NUMA" on NUMA systems.


==See Also==
==See Also==
* [[r7.1.1:Porting Guide (benchmark)|Porting Guide (benchmark)]]
* [[r7.1.1:Porting Guide (benchmark)|Porting Guide (benchmark)]]

Latest revision as of 20:16, 17 February 2017

Source File

└───test_and_benchmark
    └───benchmark
        └───src
            └───libbenchmark_porting_abstraction_layer_operating_system.h

Define

#define BENCHMARK_PAL_MEMORY_TYPE_STRING  "SMP"

or 

#define BENCHMARK_PAL_MEMORY_TYPE_STRING  "NUMA"

Example

#define BENCHMARK_PAL_MEMORY_TYPE_STRING  "NUMA"

Optionality

This define is mandatory and the programme cannot compile if it is not set.

Notes

This define is used internally to form up the version string. The value should be "SMP" on SMP systems and "NUMA" on NUMA systems.

See Also