Part 2 : Creation of a HPC/Timer library



You can find the associated presentation here.



In this part, we will create a small library to avoid these repetitions and focus on the relevant part of the following examples.



This library will be in the ExampleOptimisation/AstericsHPC directory.



Do not forget to modify the ExampleOptimisation/CMakeLists.txt file :

1
2
3
4
5
6
7
8
9
10
11
12
13
project(INTRODUCTION_MAQAO)
cmake_minimum_required(VERSION 3.0)

file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/Examples/Performances)

include(runExample.cmake)
include(pythonCheck.cmake)

set(VECTOR_ALIGNEMENT 32)
add_definitions(-DVECTOR_ALIGNEMENT=${VECTOR_ALIGNEMENT})

add_subdirectory(AstericsHPC)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/AstericsHPC)


This Asterics HPC library will provide :