Brick Library 0.1
Performance-portable stencil datalayout & codegen
|
This guide includes how to install this library and use it as an external library in another CMake project.
-DCMAKE_INSTALL_PREFIX
during the CMake configuration phase indicating where this library is to be installed.install
target will install the header files, code generator, and relavant configuration script-Dbrick_DIR=${CMAKE_INSTALL_PREFIX}/lib/brick/cmake
will enable find_package(brick)
to work in an external projectfind_package
will expose the BRICK_INCLUDE_DIR
as the header installation path and all library targets exposed by the installation. Currently usable targets are as follows.
The vector scatter CMake functions will work out-of-box. What needs to be setup after find_package
includes the follows:
rt
etc.-march=native -O2
DECOMP_PAGEUNALIGN
and BARRIER_TIMESTEP
See examples/external