-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathconfig.hpp.in
32 lines (26 loc) · 1 KB
/
config.hpp.in
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
// Copyright 2018 Francesco Biscani ([email protected])
//
// This file is part of the rakau library.
//
// This Source Code Form is subject to the terms of the Mozilla
// Public License v. 2.0. If a copy of the MPL was not distributed
// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
#ifndef RAKAU_CONFIG_HPP
#define RAKAU_CONFIG_HPP
// Start of defines instantiated by CMake.
// clang-format off
#define RAKAU_VERSION_STRING "@rakau_VERSION@"
#define RAKAU_VERSION_MAJOR @rakau_VERSION_MAJOR@
#define RAKAU_VERSION_MINOR @rakau_VERSION_MINOR@
@RAKAU_DISABLE_RSQRT@
@RAKAU_ENABLE_ROCM@
@RAKAU_ENABLE_CUDA@
// clang-format on
// End of defines instantiated by CMake.
// NOTE: at this time, it looks like we cannot link a ROCm-enabled
// librakau to code which has not been compiled with hcc. Thus, force
// for now the use of hcc if ROCm is enabled.
#if defined(RAKAU_WITH_ROCM) && !defined(__HCC__)
#error The hcc compiler must be used when rakau is configured with support for ROCm
#endif
#endif