Skip to content

Commit

Permalink
Merge pull request #675 from streeve/fixup_kokkos_math_functions
Browse files Browse the repository at this point in the history
Use Kokkos math functions in kernel
  • Loading branch information
streeve authored Aug 25, 2023
2 parents 193e49c + e0c458c commit 0a3864f
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions core/src/impl/Cabana_CartesianGrid.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,13 +154,7 @@ class CartesianGrid
KOKKOS_INLINE_FUNCTION
int cellsBetween( const Real max, const Real min, const Real rdelta ) const
{
// FIXME_SYCL (remove ifdef when newest Kokkos is required)
#if ( defined __SYCL_DEVICE_ONLY__ )
using Kokkos::Experimental::floor;
#elif !defined( __HIP_DEVICE_COMPILE__ )
using std::floor;
#endif
return floor( ( max - min ) * rdelta );
return Kokkos::floor( ( max - min ) * rdelta );
}
};

Expand Down

0 comments on commit 0a3864f

Please sign in to comment.