Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-07-26 08:21:57

0001 /**
0002  * TRACCC library, part of the ACTS project (R&D line)
0003  *
0004  * (c) 2024 CERN for the benefit of the ACTS project
0005  *
0006  * Mozilla Public License Version 2.0
0007  */
0008 
0009 #pragma once
0010 
0011 #if not defined __has_builtin
0012 #define TRACCC_ASSUME(...)
0013 #elif __has_builtin(__builtin_assume)
0014 #define TRACCC_ASSUME(...) __builtin_assume(__VA_ARGS__)
0015 #else
0016 #define TRACCC_ASSUME(...)
0017 #endif
0018 
0019 #if defined(__CUDACC__) || defined(__HIP__) || defined(__OPENMP) || \
0020     defined(__SYCL__) || defined(__clang__)
0021 #define TRACCC_PRAGMA_UNROLL _Pragma("unroll")
0022 #else
0023 #define TRACCC_PRAGMA_UNROLL
0024 #endif