-
Notifications
You must be signed in to change notification settings - Fork 11
/
CMakeLists.txt
executable file
·34 lines (26 loc) · 1.52 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
cmake_minimum_required(VERSION 3.1)
project(LINPACK VERSION 2.6)
set(USE_DEPRECATED_HPP_HEADER No)
set(DEFAULT_MATRIX_SIZE 2 CACHE STRING "Default matrix size")
set(LOCAL_MEM_BLOCK_LOG 5 CACHE STRING "Used to define the width and height of the block stored in local memory")
set(REGISTER_BLOCK_LOG 3 CACHE STRING "Size of the block that will be manipulated in registers in LU, left and top kernel")
set(REGISTER_BLOCK_MM_LOG 3 CACHE STRING "Size of the block that will be manipulated in registers in matrix multiplication kernel")
set(NUM_REPLICATIONS 1 CACHE STRING "Number of times the matrix multiplication kernel will be replicated")
set(TEST_UNIFORM No CACHE BOOL "All tests executed by CTest will be executed with uniformly generated matrices")
set(TEST_EMULATION Yes CACHE BOOL "All tests executed by CTest will be executed with emulation kernels")
set(DISTRIBUTED_VALIDATION Yes CACHE BOOL "Use the distributed validation scheme instead of validation on rank 0")
set(DEFAULT_P_VALUE 1 CACHE STRING "Default value of P that sets the width of the PQ grid")
set(COMMUNICATION_TYPE_SUPPORT_ENABLED Yes)
if (TEST_UNIFORM)
set(TEST_HOST_FLAGS "--uniform")
endif()
if (USE_ACCL)
math(EXPR calculate_accl_buffer_size "(2^${LOCAL_MEM_BLOCK_LOG})^2 * 8")
set(ACCL_BUFFER_SIZE ${calculate_accl_buffer_size} CACHE STRING "Size of ACCL buffers in bytes")
endif()
if (TEST_EMULATION)
set(TEST_HOST_FLAGS "--emulation")
endif()
set(USE_OPENMP Yes)
set(USE_MPI Yes)
include(${CMAKE_SOURCE_DIR}/../cmake/general_benchmark_build_setup.cmake)