CbmRoot
Loading...
Searching...
No Matches
AlgoFairloggerCompat.h
Go to the documentation of this file.
1
/* Copyright (C) 2023 FIAS Frankfurt Institute for Advanced Studies, Frankfurt / Main
2
SPDX-License-Identifier: GPL-3.0-only
3
Authors: Felix Weiglhofer [committer] */
4
#ifndef CBM_ALGO_BASE_COMPAT_ONLINEDATALOG_H
5
#define CBM_ALGO_BASE_COMPAT_ONLINEDATALOG_H
6
7
#ifndef NO_ROOT
8
// Do not include FairLogger in GPU code (header might not be available)
9
// FIXME: Ensure NO_ROOT is defined for GPU compilation
10
#if !defined(__NVCC__) && !defined(__HIPCC__) && !defined(SYCL_LANGUAGE_VERSION)
11
#define CBM_ONLINE_USE_FAIRLOGGER
12
#endif
13
#endif
14
15
#ifdef CBM_ONLINE_USE_FAIRLOGGER
16
// #warning "Using fair version of Logger" // Keeping in source but commented out until the main problem is resolved
17
#include <fairlogger/Logger.h>
18
#define L_(level) LOG(level)
19
20
#else
21
/*
22
* // Keeping in source but commented out until the main problem is resolved
23
#warning "Using algo/???? version of Logger"
24
25
#if defined(NO_ROOT)
26
#warning "Reason: NO_ROOT defined"
27
#endif
28
#if defined(__NVCC__)
29
#warning "Reason: __NVCC__ defined"
30
#endif
31
#if defined(__HIPCC__)
32
#warning "Reason: __HIPCC__ defined"
33
#endif
34
#if defined(SYCL_LANGUAGE_VERSION)
35
#warning "Reason: SYCL_LANGUAGE_VERSION defined"
36
#endif
37
*/
38
39
#ifndef LOG
40
41
#include <log.hpp>
42
static
constexpr
severity_level warn = severity_level::warning;
43
#define LOG(level) L_(level)
44
45
#endif
// LOG
46
47
#endif
// CBM_ONLINE_USE_FAIRLOGGER
48
49
#endif
// CBM_ALGO_BASE_COMPAT_ONLINEDATALOG_H
algo
log
AlgoFairloggerCompat.h
Generated on Sun Dec 22 2024 23:04:04 for CbmRoot by
1.12.0