Skip to content

Commit

Permalink
Added noinline for profiling
Browse files Browse the repository at this point in the history
  • Loading branch information
Rohit-Kakodkar committed Feb 17, 2025
1 parent c5d4792 commit 4b59d7d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/compute/fields/data_access.tpp
Original file line number Diff line number Diff line change
Expand Up @@ -1690,7 +1690,7 @@ template <
typename WavefieldType, typename ViewType,
typename std::enable_if_t<
ViewType::isPointFieldType && !ViewType::simd::using_simd, int> = 0>
KOKKOS_FORCEINLINE_FUNCTION void impl_atomic_add_on_device(
NOINLINE KOKKOS_FUNCTION void impl_atomic_add_on_device(
const specfem::point::index<ViewType::dimension> &index,
const ViewType &point_field, const WavefieldType &field) {

Expand All @@ -1707,7 +1707,7 @@ template <
typename WavefieldType, typename ViewType,
typename std::enable_if_t<
ViewType::isPointFieldType && ViewType::simd::using_simd, int> = 0>
KOKKOS_FORCEINLINE_FUNCTION void impl_atomic_add_on_device(
NOINLINE KOKKOS_FUNCTION void impl_atomic_add_on_device(
const specfem::point::simd_index<ViewType::dimension> &index,
const ViewType &point_field, const WavefieldType &field) {

Expand Down Expand Up @@ -1902,7 +1902,7 @@ template <
typename ViewType,
typename std::enable_if_t<
ViewType::isChunkFieldType && !ViewType::simd::using_simd, int> = 0>
KOKKOS_FORCEINLINE_FUNCTION void
NOINLINE KOKKOS_FUNCTION void
impl_load_on_device(const MemberType &team, const IteratorType &iterator,
const WavefieldType &field, ViewType &chunk_field) {

Expand Down Expand Up @@ -1980,7 +1980,7 @@ template <
typename ViewType,
typename std::enable_if_t<
ViewType::isChunkFieldType && ViewType::simd::using_simd, int> = 0>
KOKKOS_FORCEINLINE_FUNCTION void
NOINLINE KOKKOS_FUNCTION void
impl_load_on_device(const MemberType &team, const IteratorType &iterator,
const WavefieldType &field, ViewType &chunk_field) {

Expand Down

0 comments on commit 4b59d7d

Please sign in to comment.