RAJA
RAJA provides a collection of platform portability abstractions for C++ HPC applications.
kernel_name.hpp
Go to the documentation of this file.
1 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
2 // Copyright (c) Lawrence Livermore National Security, LLC and other
3 // RAJA Project Developers. See top-level LICENSE and COPYRIGHT
4 // files for dates and other details. No copyright assignment is required
5 // to contribute to RAJA.
6 //
7 // SPDX-License-Identifier: (BSD-3-Clause)
8 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
9 
10 #ifndef RAJA_KERNEL_NAME_HPP
11 #define RAJA_KERNEL_NAME_HPP
12 
14 
15 namespace RAJA
16 {
17 namespace detail
18 {
19 
21 {
23 
24  explicit Name(const char* name_in) : name(name_in) {}
25 
26  const char* name;
27 };
28 
29 } // namespace detail
30 
31 inline auto Name(const char* n) { return detail::Name(n); }
32 
33 
34 } // namespace RAJA
35 
36 
37 #endif // KERNEL_NAME_HPP
#define RAJA_HOST_DEVICE
Definition: macros.hpp:65
Definition: AlignedRangeIndexSetBuilders.cpp:35
auto Name(const char *n)
Definition: kernel_name.hpp:31
Definition: kernel_name.hpp:21
RAJA_HOST_DEVICE Name()
Definition: kernel_name.hpp:22
const char * name
Definition: kernel_name.hpp:26
Name(const char *name_in)
Definition: kernel_name.hpp:24
Definition: params_base.hpp:282