TRUST 1.9.8
HPC thermohydraulic platform
Loading...
Searching...
No Matches
kokkos++.h
1/****************************************************************************
2* Copyright (c) 2025, CEA
3* All rights reserved.
4*
5* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
6* 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
7* 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
8* 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
9*
10* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
11* IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
12* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
13*
14*****************************************************************************/
15
16#ifdef __NVCOMPILER
17#pragma diag_suppress 177
18#pragma diag_suppress 47 /* warning cuda */
19#endif
20#pragma GCC diagnostic push
21#pragma GCC diagnostic ignored "-Wshadow"
22#pragma GCC diagnostic ignored "-Wconversion"
23#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
24#pragma GCC diagnostic ignored "-Wfloat-conversion"
25
26#if __GNUC__ > 5 || __clang_major__ > 10
27#pragma GCC diagnostic ignored "-Wsuggest-override"
28#endif
29
30#if defined(LATATOOLS)
31#undef KOKKOS
32#define KOKKOS_FUNCTION
33#define KOKKOS_INLINE_FUNCTION inline
34#else
35#define KOKKOS
36#include <Kokkos_Core.hpp>
37#endif
38
39#undef _KOKKOS_AVX
40
41#pragma GCC diagnostic pop
42#ifdef __NVCOMPILER
43#pragma diag_warning 177
44#pragma diag_warning 47
45#endif
46
47#ifdef TRUST_USE_CUDA
48#define public_for_cuda public:
49#else
50#define public_for_cuda protected:
51#endif