Skip to content

Commit

Permalink
utils/Interval: Fix missing GPU qualifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
mirenradia committed Jul 15, 2024
1 parent a60010e commit 3b869a9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Source/utils/Interval.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
#ifndef INTERVAL_H_
#define INTERVAL_H_

#include <AMReX_GpuQualifiers.H>

struct Interval
{
Interval() = default;
Expand All @@ -22,18 +24,18 @@ struct Interval
m_end = a_lastComp;
}

[[nodiscard]] AMREX_GPU_DEVICE AMREX_FORCE_INLINE int begin() const
[[nodiscard]] AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE int begin() const

Check failure on line 27 in Source/utils/Interval.hpp

View workflow job for this annotation

GitHub Actions / clang-tidy & clang-format

Source/utils/Interval.hpp:27:41 [clang-diagnostic-error]

unknown type name 'AMREX_FORCE_INLINE'
{
return m_begin;
}

//! return last component number
[[nodiscard]] AMREX_GPU_DEVICE AMREX_FORCE_INLINE int end() const
[[nodiscard]] AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE int end() const

Check failure on line 33 in Source/utils/Interval.hpp

View workflow job for this annotation

GitHub Actions / clang-tidy & clang-format

Source/utils/Interval.hpp:33:41 [clang-diagnostic-error]

unknown type name 'AMREX_FORCE_INLINE'
{
return m_end;
}

[[nodiscard]] AMREX_GPU_DEVICE AMREX_FORCE_INLINE int size() const
[[nodiscard]] AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE int size() const

Check failure on line 38 in Source/utils/Interval.hpp

View workflow job for this annotation

GitHub Actions / clang-tidy & clang-format

Source/utils/Interval.hpp:38:41 [clang-diagnostic-error]

unknown type name 'AMREX_FORCE_INLINE'
{
return m_end - m_begin + 1;
}
Expand Down

0 comments on commit 3b869a9

Please sign in to comment.