Skip to content

System Specific Variables

Miguel Ramalho edited this page Sep 16, 2017 · 2 revisions

System Specific Variables

Since the same code can have different behaviours according to the phisical system it is running on, there are a few variables that can be invoked in Lat that will be system dependent, such as:

  1. NUM_CPU_THREADS - Total number of hardware threads on the CPU (LatConst.NUM_CPU_THREADS)
  2. L1_CACHE_LINESIZE - L1 cache line size in bytes (LatConst.L1_CACHE_LINESIZE)
Clone this wiki locally