fix build on SM 5.2 (#1664)
This commit is contained in:
parent
5b283c872c
commit
fbd116c0e5
@ -234,7 +234,7 @@ template <>
|
|||||||
struct inverse_square_root<half_t> {
|
struct inverse_square_root<half_t> {
|
||||||
CUTLASS_HOST_DEVICE
|
CUTLASS_HOST_DEVICE
|
||||||
half_t operator()(half_t const &lhs) const {
|
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));
|
auto result = hrsqrt(reinterpret_cast<__half const &>(lhs));
|
||||||
return reinterpret_cast<half_t const &>(result);
|
return reinterpret_cast<half_t const &>(result);
|
||||||
#else
|
#else
|
||||||
|
Loading…
Reference in New Issue
Block a user