<div dir="ltr"><div>So here's some more odd bits.  Due to CMake (originally I only wanted to upgrade VS)  I have now entered the version upgrade cascade and upgraded to cuda 9.0 (yes the one with 4 patches, but the only one that works TensorFlow on windows due to cuDNN.dll... sigh)  in hopes to get VS2017 to work (hey why not right) and while I am at it why not upgrade CMake to 3.12.1 (latest) surely that will work like a charm.   So lets go through the config chart:</div><div><br></div><div>using CMake 3.12.1 (delete cache each time / start from scratch)</div><div><br></div><div>Configure -> VS 2013 -> cuda=9.0 in (optional toolset to use (argument to -T)) ->Generate -> Open Project<br></div><div><br></div><div>I get: <br></div><div><br></div><div>

<p style="margin:0px;white-space:pre-wrap">The CXX compiler identification is MSVC 18.0.31101.0</p>
<p style="margin:0px;white-space:pre-wrap">The CUDA compiler identification is NVIDIA 9.0.176</p>
<p style="margin:0px;white-space:pre-wrap">Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin/x86_amd64/cl.exe</p>
<p style="margin:0px;white-space:pre-wrap">Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin/x86_amd64/cl.exe -- works</p>
<p style="margin:0px;white-space:pre-wrap">Detecting CXX compiler ABI info</p>
<p style="margin:0px;white-space:pre-wrap">Detecting CXX compiler ABI info - done</p>
<p style="margin:0px;white-space:pre-wrap">Detecting CXX compile features</p>
<p style="margin:0px;white-space:pre-wrap">Detecting CXX compile features - done</p>
<p style="margin:0px;white-space:pre-wrap">Check for working CUDA compiler: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v9.0/bin/nvcc.exe</p>
<p style="margin:0px;white-space:pre-wrap">Check for working CUDA compiler: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v9.0/bin/nvcc.exe -- works</p>
<p style="margin:0px;white-space:pre-wrap">Detecting CUDA compiler ABI info</p>
<p style="margin:0px;white-space:pre-wrap">Detecting CUDA compiler ABI info - done</p>
<p style="margin:0px;white-space:pre-wrap">Found OpenGL: opengl32   </p>
<p style="margin:0px;white-space:pre-wrap">FUORO4D_UTILITY_LIB_DEBUG = C:/projects/4DRTProto/4DRTProto/build/x64/Debug/Libraries/4DFUtilities.lib</p>
<p style="margin:0px;color:rgb(255,0,0);white-space:pre-wrap"><br></p>and starts VS 2017 (now mind you *some* of those projects are loaded with include_external_msproject (yeah I am guessing people may start to see the problem here so loading the correct version of VS may well be important.) and as such will be mixed mode cuda 8/9 surly to be a hoot in the future if that path were continued.<br></div><div><br></div><div>so it successfully generates and loads something I cannot use at least without resorting back to my .bat scripts with env vars set to load VS2013</div><div><br></div><div>So hey lets switch back to 8.0<br></div><div><br></div><div>
<div>Configure -> VS 2013 -> cuda=8.0 in (optional toolset to use (argument to -T)) ->Generate -> Open Project<br></div><div><br></div>



<p style="margin:0px;white-space:pre-wrap">The CXX compiler identification is MSVC 18.0.31101.0</p>
<p style="margin:0px;white-space:pre-wrap">The CUDA compiler identification is NVIDIA 8.0.60</p>
<p style="margin:0px;white-space:pre-wrap">Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin/x86_amd64/cl.exe</p>
<p style="margin:0px;white-space:pre-wrap">Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin/x86_amd64/cl.exe -- works</p>
<p style="margin:0px;white-space:pre-wrap">Detecting CXX compiler ABI info</p>
<p style="margin:0px;white-space:pre-wrap">Detecting CXX compiler ABI info - done</p>
<p style="margin:0px;white-space:pre-wrap">Detecting CXX compile features</p>
<p style="margin:0px;white-space:pre-wrap">Detecting CXX compile features - done</p>
<p style="margin:0px;white-space:pre-wrap">Check for working CUDA compiler: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v8.0/bin/nvcc.exe</p>
<p style="margin:0px;white-space:pre-wrap">Check for working CUDA compiler: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v8.0/bin/nvcc.exe -- works</p>
<p style="margin:0px;white-space:pre-wrap">Detecting CUDA compiler ABI info</p>
<p style="margin:0px;white-space:pre-wrap">Detecting CUDA compiler ABI info - done</p>
<p style="margin:0px;white-space:pre-wrap">Found OpenGL: opengl32   </p>
<p style="margin:0px;white-space:pre-wrap">FUORO4D_UTILITY_LIB_DEBUG = C:/projects/4DRTProto/4DRTProto/build/x64/Debug/Libraries/4DFUtilities.lib</p><p style="margin:0px;white-space:pre-wrap">Configuring done</p><br></div><div>VS2017 loads again and complains about one or more project files were not loaded correctly.  No surprise there.</div><div><br></div><div><br></div><div>
<div>Configure -> VS 2017 -> cuda=8.0 in (optional toolset to use (argument to -T)) ->Generate -> Open Project<br></div><div><br></div>



<p style="margin:0px;white-space:pre-wrap">Selecting Windows SDK version 10.0.17134.0 to target Windows 10.0.16299.</p>
<p style="margin:0px;white-space:pre-wrap">The CXX compiler identification is MSVC 19.14.26433.0</p>
<p style="margin:0px;white-space:pre-wrap">The CUDA compiler identification is unknown</p>
<p style="margin:0px;white-space:pre-wrap">Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.14.26428/bin/Hostx86/x64/cl.exe</p>
<p style="margin:0px;white-space:pre-wrap">Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.14.26428/bin/Hostx86/x64/cl.exe -- works</p>
<p style="margin:0px;white-space:pre-wrap">Detecting CXX compiler ABI info</p>
<p style="margin:0px;white-space:pre-wrap">Detecting CXX compiler ABI info - done</p>
<p style="margin:0px;white-space:pre-wrap">Detecting CXX compile features</p>
<p style="margin:0px;white-space:pre-wrap">Detecting CXX compile features - done</p>
<p style="margin:0px;white-space:pre-wrap"><span style="color:rgb(255,0,0)">CMake Error at CMakeLists.txt:14 (PROJECT):<br>  No CMAKE_CUDA_COMPILER could be found.</span></p><br></div><div>Hmm that ain't never going to work.  I installed 9.0 after VS2017 install however.</div><div><br></div><div><br></div><div>
<div>Configure -> VS 2017 -> cuda=9.0 in (optional toolset to use (argument to -T)) ->Generate -> Open Project<br></div><div><br></div>



<p style="margin:0px;white-space:pre-wrap">Selecting Windows SDK version 10.0.17134.0 to target Windows 10.0.16299.</p>
<p style="margin:0px;white-space:pre-wrap">The CXX compiler identification is MSVC 19.14.26433.0</p>
<p style="margin:0px;white-space:pre-wrap">The CUDA compiler identification is unknown</p>
<p style="margin:0px;white-space:pre-wrap">Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.14.26428/bin/Hostx86/x64/cl.exe</p>
<p style="margin:0px;white-space:pre-wrap">Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.14.26428/bin/Hostx86/x64/cl.exe -- works</p>
<p style="margin:0px;white-space:pre-wrap">Detecting CXX compiler ABI info</p>
<p style="margin:0px;white-space:pre-wrap">Detecting CXX compiler ABI info - done</p>
<p style="margin:0px;white-space:pre-wrap">Detecting CXX compile features</p>
<p style="margin:0px;white-space:pre-wrap">Detecting CXX compile features - done</p>
<p style="margin:0px;white-space:pre-wrap"><span style="color:rgb(255,0,0)">CMake Error at CMakeLists.txt:14 (PROJECT):<br>  No CMAKE_CUDA_COMPILER could be found.<br></span></p></div><div><br></div><div>Ditto for that attempt</div><div><br></div><div>
<div>Configure -> VS 2017 -> leave blank in desperate hope CMake will figure it out  in (optional toolset to use (argument to -T)) ->Generate -> Open Project<br></div><div><br></div>

<br></div><div>

<p style="margin:0px;white-space:pre-wrap">Selecting Windows SDK version 10.0.17134.0 to target Windows 10.0.16299.</p>
<p style="margin:0px;white-space:pre-wrap">The CXX compiler identification is MSVC 19.14.26433.0</p>
<p style="margin:0px;white-space:pre-wrap">The CUDA compiler identification is unknown</p>
<p style="margin:0px;white-space:pre-wrap">Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.14.26428/bin/Hostx86/x64/cl.exe</p>
<p style="margin:0px;white-space:pre-wrap">Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.14.26428/bin/Hostx86/x64/cl.exe -- works</p>
<p style="margin:0px;white-space:pre-wrap">Detecting CXX compiler ABI info</p>
<p style="margin:0px;white-space:pre-wrap">Detecting CXX compiler ABI info - done</p>
<p style="margin:0px;white-space:pre-wrap">Detecting CXX compile features</p>
<p style="margin:0px;white-space:pre-wrap">Detecting CXX compile features - done</p>
<p style="margin:0px;white-space:pre-wrap"><span style="color:rgb(255,0,0)">CMake Error at CMakeLists.txt:14 (PROJECT):<br>  No CMAKE_CUDA_COMPILER could be found.</span></p><br></div><div>
Ditto for that attempt

<br></div><div><br></div><div>Aces! This sure is awesome.<br></div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 15, 2018 at 10:45 AM, Brian Davis <span dir="ltr"><<a href="mailto:bitminer@gmail.com" target="_blank">bitminer@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span class="">
<div>Yes I know all about the bit about having to reinstall CUDA (been 
using it since the 2.0 days) for 2017 (using VS since 2005).... if only I
 could get CMake to call VS2013... ya know the version that already has 
cuda 8.0 installed and configured and the extensions from C:\Program 
Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\extras\visua<wbr>l_studio_integration\MSBuildEx<wbr>tensions that get installed <br></div><div><br></div><div>Can CMake defer to what the user ultimately wants?

.. say the correct version of VS.  I mean that is what I thought I specified.</div><div><br></div></span><div><span class="">I
 had thought when I upgraded to 3.8/3.9 or whatever at the time that ...
 Oh great they now have an open project button... .maybe that will allow
 me to not have to generate .bat scripts to load VS (mind you my .bat 
script generation in CMake could actually tell me which correct version 
to load so these kinds of things are possible) with the env vars I set 
and set them in CMake and have CMake load VS (again correct version) 
with said env.  It worked like a charm... well for a while anyway as it 
does with anything in the tech world.  I certainly feel like I have 
upgraded.</span><div class="m_-2240094758272438426gmail-yj6qo m_-2240094758272438426gmail-ajU"><div id="m_-2240094758272438426gmail-:17y" class="m_-2240094758272438426gmail-ajR"><img class="m_-2240094758272438426gmail-ajT" src="https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif"></div></div></div>

<br></div><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Wed, Aug 15, 2018 at 9:48 AM, Robert Maynard <span dir="ltr"><<a href="mailto:robert.maynard@kitware.com" target="_blank">robert.maynard@kitware.com</a>></span> wrote:<br></span><div><div class="h5"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>> cannot find CUDA likely as CUDA was not installed after 2017<br>
<br>
</span>The CUDA language support requires the CUDA MSBUILD extensions, which<br>
will require you to run the CUDA installer again ( it only installs<br>
the msbuild extensions for versions that are currently installed ).<br>
<span><br>
>  I would like it to load 2013 after being told to generate Visual Studio 2013 project files.<br>
<br>
</span> As Hendrik stated CMake defers to the windows shell/explorer for<br>
opening solution files.<br>
<span class="m_-2240094758272438426im m_-2240094758272438426HOEnZb">On Tue, Aug 14, 2018 at 7:27 PM Brian Davis <<a href="mailto:bitminer@gmail.com" target="_blank">bitminer@gmail.com</a>> wrote:<br>
><br>
><br>
> It also cannot find CUDA likely as CUDA was not installed after 2017.  I would like it to load 2013 after being told to generate Visual Studio 2013 project files.  Is this difficult to ask fo Kitware?  I am sure there are certainly some shenanigans like path or VS2017 hooking calls to 2013 tools or the like all of which I am sure make sens to a cubite in the bowels of the MS machine.  VS loaded 2017 and vs 2013  proj files then promptly had problems searching files, compiling stale targets and the like.  So while VS2017 make "hook" 2013 tools it certainly can't do any thing useful with them IME.  Is there a Meta buld tool (goop generator) that will build goop for a target goop reader then call said target goop reader (of correct specified version) to read goop and compile my code?  sigh.<br>
><br>
</span><div class="m_-2240094758272438426HOEnZb"><div class="m_-2240094758272438426h5">> --<br>
><br>
> Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
><br>
> Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" rel="noreferrer" target="_blank">http://www.cmake.org/Wiki/CMak<wbr>e_FAQ</a><br>
><br>
> Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
><br>
> CMake Support: <a href="http://cmake.org/cmake/help/support.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/su<wbr>pport.html</a><br>
> CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/co<wbr>nsulting.html</a><br>
> CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/tr<wbr>aining.html</a><br>
><br>
> Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensou<wbr>rce/opensource.html</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="https://cmake.org/mailman/listinfo/cmake" rel="noreferrer" target="_blank">https://cmake.org/mailman/list<wbr>info/cmake</a><br>
</div></div></blockquote></div></div></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><br>-- <br><div class="m_-2240094758272438426gmail_signature" data-smartmail="gmail_signature">Brian J. Davis<br></div>
</font></span></div>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Brian J. Davis<br></div>
</div>