Guest User

Untitled

a guest
Aug 15th, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. --- eigen_archive/Eigen/src/Core/arch/CUDA/Half.h 2018-06-22 18:09:44.000000000 -0400
  2. +++ eigen_archive/Eigen/src/Core/arch/CUDA/Half.h 2018-07-25 01:19:55.462313100 -0400
  3. @@ -209,7 +209,7 @@
  4. // conversion steps back and forth.
  5.  
  6. EIGEN_STRONG_INLINE __device__ half operator + (const half& a, const half& b) {
  7. - return __hadd(a, b);
  8. + return __hadd(::__half(a), ::__half(b));
  9. }
  10. EIGEN_STRONG_INLINE __device__ half operator * (const half& a, const half& b) {
  11. return __hmul(a, b);
  12. @@ -218,9 +218,7 @@
  13. return __hsub(a, b);
  14. }
  15. EIGEN_STRONG_INLINE __device__ half operator / (const half& a, const half& b) {
  16. - float num = __half2float(a);
  17. - float denom = __half2float(b);
  18. - return __float2half(num / denom);
  19. + return __hdiv(a, b);
  20. }
  21. EIGEN_STRONG_INLINE __device__ half operator - (const half& a) {
  22. return __hneg(a);
Add Comment
Please, Sign In to add comment