Skip to content

Commit

Permalink
fix build on SM 5.2 (NVIDIA#1664)
Browse files Browse the repository at this point in the history
  • Loading branch information
eqy authored Jul 31, 2024
1 parent 5b283c8 commit fbd116c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/cutlass/functional.h
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ template <>
struct inverse_square_root<half_t> {
CUTLASS_HOST_DEVICE
half_t operator()(half_t const &lhs) const {
#if defined(__CUDA_ARCH__)
#if defined(__CUDA_ARCH__) && __CUDA_ARCH__ > 520
auto result = hrsqrt(reinterpret_cast<__half const &>(lhs));
return reinterpret_cast<half_t const &>(result);
#else
Expand Down

0 comments on commit fbd116c

Please sign in to comment.