blob: 8c223e9ec9e4561ff0e1b62585dfed026c381826 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
diff --git a/src/cuda_cryptonight_gpu.hpp b/src/cuda_cryptonight_gpu.hpp
index e789286..eeeedf5 100644
--- a/src/cuda_cryptonight_gpu.hpp
+++ b/src/cuda_cryptonight_gpu.hpp
@@ -7,6 +7,12 @@
#include "cuda_keccak.hpp"
#include "cuda_extra.h"
+#if __CUDACC_VER_MAJOR__ >= 11
+#define float_as_int __float_as_int
+#define int_as_float __int_as_float
+#define int2float __int2float_rn
+#endif
+
namespace xmrig_cuda
{
namespace cn_gpu
|