-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathCMakeLists.txt
executable file
·30 lines (23 loc) · 1.42 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
cmake_minimum_required(VERSION 3.13)
project(b_eff VERSION 1.3)
set(SEND_KERNEL_NAME send)
set(RECV_KERNEL_NAME recv)
set(CHANNEL_WIDTH 32 CACHE STRING "Width of a single external channel in Byte")
set(DEFAULT_MAX_MESSAGE_SIZE 20 CACHE STRING "Log2 of the maximum message size that should be used in the benchmark. Default is 2^20=1MB")
set(DEFAULT_MAX_LOOP_LENGTH 65536 CACHE STRING "Maximum number of repetitions done for a single message size")
set(DEFAULT_MIN_LOOP_LENGTH 256 CACHE STRING "Minimum number of repetitions done for a single message size")#
set(DEFAULT_LOOP_LENGTH_OFFSET 11 CACHE STRING "Offset that is used for the message sizes before reducing the number of repetitions")
set(DEFAULT_LOOP_LENGTH_DECREASE 7 CACHE STRING "Number of steps that are used to decrease the number of repetitions to its minimum")
set(NUM_REPLICATIONS 2 CACHE STRING "")
set(HOST_EMULATION_REORDER No CACHE BOOL "Reorder the scheduling of FPGA kernels for Intel fast emulator since channels are only read once!")
set(USE_MPI Yes)
set(USE_DEPRECATED_HPP_HEADER No)
set(COMMUNICATION_TYPE_SUPPORT_ENABLED Yes)
if (USE_ACCL)
math(EXPR calculate_accl_buffer_size "2 ^ ${DEFAULT_MAX_MESSAGE_SIZE} * 4")
set(ACCL_BUFFER_SIZE ${calculate_accl_buffer_size} CACHE STRING "Size of ACCL buffers in bytes")
endif()
set(DATA_TYPE char)
include(${CMAKE_SOURCE_DIR}/../cmake/general_benchmark_build_setup.cmake)
unset(DATA_TYPE CACHE)
find_package(MPI REQUIRED)