Skip to content

Commit

Permalink
Revert "Minor cleanup"
Browse files Browse the repository at this point in the history
This reverts commit c33ddd2.
  • Loading branch information
fthaler committed Oct 29, 2024
1 parent 85bec3e commit 31ed5bf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion include/gridtools/common/const_ptr_deref.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,15 @@

namespace gridtools {

#if defined(GT_CUDACC) && defined(GT_CUDA_ARCH)
#ifdef GT_CUDACC

template <class T>
GT_FUNCTION constexpr std::enable_if_t<is_texture_type<T>::value, T> const_ptr_deref(T const *ptr) {
#ifdef GT_CUDA_ARCH
return __ldg(ptr);
#else
return *ptr;
#endif
}

#endif
Expand Down

0 comments on commit 31ed5bf

Please sign in to comment.