andyschwarzl / gpuNUFFT

gpuNUFFT - An Open-Source GPU Library for 3D Gridding with Direct Matlab and Python Interface
http://cai2r.net/resources/software/gpunufft-open-source-gpu-library-3d-gridding-direct-matlab-interface
Other
77 stars 32 forks source link

Problems with Visual Studio 2017 #66

Open andyschwarzl opened 6 years ago

andyschwarzl commented 6 years ago

There seem to be problems when trying to build gpuNUFFT with CUDA 9 and VS 2017 (Platform toolset v141).

https://stackoverflow.com/questions/43745099/using-cuda-with-visual-studio-2017

Building gpuNUFFT may result in the following error:

C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(171,5): error MSB6006: "cmd.exe" exited with code 1.

One workaround is to change the platform toolset to v140 (2015) directly in Visual Studio. Or you can try to use the "Visual Studio 14 2015 Win64" generator during CMake.

HTH

SylvainLan commented 6 years ago

I had to download visualStudio 2015 and use the "Visual Studio 14 2015 Win64" generator during CMake to make the build correctly, it did not work with v2017 even after having changed the platform toolset to v140 in v2017.

andyschwarzl commented 6 years ago

Thanks for the info!