xmrig / xmrig-nvidia

Monero (XMR) NVIDIA miner
GNU General Public License v3.0
700 stars 260 forks source link

Nvidia x86 Visual studio 2017 compilation errors #206

Open JimmyBenne opened 5 years ago

JimmyBenne commented 5 years ago

hi, I've followed the instructions here : https://github.com/xmrig/xmrig-nvidia/wiki/Windows-Build-CUDA-8 and I've been using this code for cmake : cmake .. -G "Visual Studio 15 2017" -T v140,host=x64 -DXMRIG_DEPS=c:\xmrig-deps\msvc2015\x86 -DCUDA_TOOLKIT_ROOT_DIR="c:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v8.0"

The creation of the build is successful and cmake doesn't show any error, but when I compile the solution i visual studio 2017 it give me an error: "'cx': formal parameter with requested alignment of 16 won't be aligned" with a lot of warnings before it. in CryptoNight_x86.h line 450

Meanwhile I've tested if there were some problems with the stuff I've installed, so I've tried to build and compile the 64 bit nvidia (with cuda 8), and it doesn't give any problem.

slavab73 commented 5 years ago

this works: static inline void cryptonight_monero_tweak(uint64_t mem_out, const uint8_t l, uint64_t idx, m128i ax0, m128i bx0, m128i bx1, m128i & cx)

JimmyBenne commented 5 years ago

Thank you so much it worked! I've just changed that line of code and everything is fine... best regards slavab73