Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-27 07:24:05

0001 // This file is part of the ACTS project.
0002 //
0003 // Copyright (C) 2016 CERN for the benefit of the ACTS project
0004 //
0005 // This Source Code Form is subject to the terms of the Mozilla Public
0006 // License, v. 2.0. If a copy of the MPL was not distributed with this
0007 // file, You can obtain one at https://mozilla.org/MPL/2.0/.
0008 
0009 #pragma once
0010 
0011 // Project include(s)
0012 #include "detray/utils/logging_streams.hpp"
0013 
0014 // Define the detray logging macros
0015 #ifndef __DETRAY_LOGGING__
0016 #define __DETRAY_LOGGING__
0017 #endif
0018 
0019 // HOST
0020 #define DETRAY_FATAL_HOST(x) DETRAY_FATAL_STREAM("DETRAY", x)
0021 #define DETRAY_ERROR_HOST(x) DETRAY_ERROR_STREAM("DETRAY", x)
0022 #define DETRAY_WARN_HOST(x) DETRAY_WARN_STREAM("DETRAY", x)
0023 #define DETRAY_INFO_HOST(x) DETRAY_INFO_STREAM("DETRAY", x)
0024 #define DETRAY_VERBOSE_HOST(x) DETRAY_VERBOSE_STREAM("DETRAY", x)
0025 #define DETRAY_DEBUG_HOST(x) DETRAY_DEBUG_STREAM("DETRAY", x)
0026 
0027 // HOST-DEVICE
0028 #define DETRAY_FATAL_HOST_DEVICE(x, ...) \
0029   DETRAY_FATAL_PRINTF("DETRAY", x, __VA_ARGS__)
0030 #define DETRAY_ERROR_HOST_DEVICE(x, ...) \
0031   DETRAY_ERROR_PRINTF("DETRAY", x, __VA_ARGS__)
0032 #define DETRAY_WARN_HOST_DEVICE(x, ...) \
0033   DETRAY_WARN_PRINTF("DETRAY", x, __VA_ARGS__)
0034 #define DETRAY_INFO_HOST_DEVICE(x, ...) \
0035   DETRAY_INFO_PRINTF("DETRAY", x, __VA_ARGS__)
0036 #define DETRAY_VERBOSE_HOST_DEVICE(x, ...) \
0037   DETRAY_VERBOSE_PRINTF("DETRAY", x, __VA_ARGS__)
0038 #define DETRAY_DEBUG_HOST_DEVICE(x, ...) \
0039   DETRAY_DEBUG_PRINTF("DETRAY", x, __VA_ARGS__)
0040 
0041 // DEVICE
0042 #ifdef __DEVICE_LOGGING__
0043 
0044 #define DETRAY_FATAL_DEVICE(x, ...) \
0045   DETRAY_FATAL_PRINTF("DETRAY", x, __VA_ARGS__)
0046 #define DETRAY_ERROR_DEVICE(x, ...) \
0047   DETRAY_ERROR_PRINTF("DETRAY", x, __VA_ARGS__)
0048 #define DETRAY_WARN_DEVICE(x, ...) DETRAY_WARN_PRINTF("DETRAY", x, __VA_ARGS__)
0049 #define DETRAY_INFO_DEVICE(x, ...) DETRAY_INFO_PRINTF("DETRAY", x, __VA_ARGS__)
0050 #define DETRAY_VERBOSE_DEVICE(x, ...) \
0051   DETRAY_VERBOSE_PRINTF("DETRAY", x, __VA_ARGS__)
0052 #define DETRAY_DEBUG_DEVICE(x, ...) \
0053   DETRAY_DEBUG_PRINTF("DETRAY", x, __VA_ARGS__)
0054 
0055 #else
0056 
0057 #define DETRAY_FATAL_DEVICE(x, ...)
0058 #define DETRAY_ERROR_DEVICE(x, ...)
0059 #define DETRAY_WARN_DEVICE(x, ...)
0060 #define DETRAY_INFO_DEVICE(x, ...)
0061 #define DETRAY_VERBOSE_DEVICE(x, ...)
0062 #define DETRAY_DEBUG_DEVICE(x, ...)
0063 
0064 #endif