Skip to content

Commit

Permalink
guard native kernel naming capability
Browse files Browse the repository at this point in the history
  • Loading branch information
artv3 committed Dec 29, 2024
1 parent 272b8fc commit b58b4c9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions include/RAJA/policy/cuda/params/kernel_name.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace detail {
camp::concepts::enable_if< type_traits::is_cuda_policy<EXEC_POL> >
init(KernelName& kn, const RAJA::cuda::detail::cudaInfo &)
{
#if defined(RAJA_ENABLE_NV_TOOLS_EXT)
#if defined(RAJA_ENABLE_NV_TOOLS_EXT) && !defined(RAJA_ENABLE_CALIPER)
nvtxRangePush(kn.name);
#else
RAJA_UNUSED_VAR(kn);
Expand All @@ -34,7 +34,7 @@ namespace detail {
camp::concepts::enable_if< type_traits::is_cuda_policy<EXEC_POL> >
resolve(KernelName&, const RAJA::cuda::detail::cudaInfo &)
{
#if defined(RAJA_ENABLE_NV_TOOLS_EXT)
#if defined(RAJA_ENABLE_NV_TOOLS_EXT) && !defined(RAJA_ENABLE_CALIPER)
nvtxRangePop();
#endif
}
Expand Down
4 changes: 2 additions & 2 deletions include/RAJA/policy/hip/params/kernel_name.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ namespace detail {
camp::concepts::enable_if< type_traits::is_hip_policy<EXEC_POL> >
init(KernelName& kn, const RAJA::hip::detail::hipInfo &)
{
#if defined(RAJA_ENABLE_ROCTX)
#if defined(RAJA_ENABLE_ROCTX) && !defined(RAJA_ENABLE_CALIPER)
roctxRangePush(kn.name);
#else
RAJA_UNUSED_VAR(kn);
Expand All @@ -38,7 +38,7 @@ namespace detail {
camp::concepts::enable_if< type_traits::is_hip_policy<EXEC_POL> >
resolve(KernelName&, const RAJA::hip::detail::hipInfo &)
{
#if defined(RAJA_ENABLE_ROCTX)
#if defined(RAJA_ENABLE_ROCTX) && !defined(RAJA_ENABLE_CALIPER)
roctxRangePop();
#endif
}
Expand Down

0 comments on commit b58b4c9

Please sign in to comment.