Skip to content

Commit

Permalink
add inline for __half2float_warp (apache#20152)
Browse files Browse the repository at this point in the history
  • Loading branch information
khaotik authored and chinakook committed May 2, 2021
1 parent fdd6133 commit f1a5c49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 3rdparty/mshadow/mshadow/half.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
#include <cuda_fp16.h>
#if defined(__CUDA_ARCH__)
/*! \brief __half2float_warp */
__host__ __device__ float __half2float_warp(const volatile __half& h) { /* NOLINT(*) */
MSHADOW_XINLINE float __half2float_warp(const volatile __half& h) { /* NOLINT(*) */
__half val;
#if CUDA_VERSION >= 9000
val = const_cast<__half&>(h);
Expand Down

0 comments on commit f1a5c49

Please sign in to comment.