<div dir="ltr"><br><div class="gmail_quote"><div dir="ltr">On Thu, Aug 16, 2018 at 9:18 AM Brian Davis <<a href="mailto:bitminer@gmail.com">bitminer@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 15, 2018 at 11:58 AM, Robert Maynard <span dir="ltr"><<a href="mailto:robert.maynard@kitware.com" target="_blank">robert.maynard@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">The MSVC / CUDA support recently has been very challenging to keep track of. In general CUDA will only support a single patch release of MSVC, and given how MSVC 2017 doesn't easily allow rollbacks and has a pretty aggressive update policy ( compared to older MSVC versions ) causes lots of pain. This in general has been a community wide MSVC+CUDA issue. <div><br></div><div>CUDA 8 has zero support for VS2017 ( <a href="https://docs.nvidia.com/cuda/archive/8.0/cuda-installation-guide-microsoft-windows/index.html" target="_blank">https://docs.nvidia.com/cuda/archive/8.0/cuda-installation-guide-microsoft-windows/index.html</a> )</div><div>CUDA 9.0 and 9.1 only supports VS 2017 15.0 (<a href="https://docs.nvidia.com/cuda/archive/9.0/cuda-installation-guide-microsoft-windows/index.html" target="_blank">https://docs.nvidia.com/cuda/archive/9.0/cuda-installation-guide-microsoft-windows/index.html</a>, <a href="https://docs.nvidia.com/cuda/archive/9.1/cuda-installation-guide-microsoft-windows/index.html" target="_blank">https://docs.nvidia.com/cuda/archive/9.1/cuda-installation-guide-microsoft-windows/index.html</a>)</div><div>CUDA 9.2 only supports VS 2017 15.0 and 15.6</div><div><br></div><div>When using MSVC 2017 and CUDA you will need to specify an explicit host side compiler with -T version=15.## including the minor version ( <a href="https://cmake.org/cmake/help/v3.12/release/3.12.html#id3" target="_blank">https://cmake.org/cmake/help/v3.12/release/3.12.html#id3</a> ).<br></div></div><div class="gmail-m_2524859762553036235HOEnZb"><div class="gmail-m_2524859762553036235h5"></div></div></blockquote></div></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div></div></blockquote><div><span style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">Can't that be set by passing the toolset with a -T ? like -T "<span style="color:rgb(69,69,69);font-family:WOL_SL,"Segoe UI",Tahoma,Arial,sans-serif;font-size:14px;text-align:left;text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">v120_xp</span>"    or -T "v120"</span></div><div><span style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><br></span></div><div><span style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">This is an article about side-by-side toolsets <a href="https://blogs.msdn.microsoft.com/vcblog/2017/11/15/side-by-side-minor-version-msvc-toolsets-in-visual-studio-2017/">https://blogs.msdn.microsoft.com/vcblog/2017/11/15/side-by-side-minor-version-msvc-toolsets-in-visual-studio-2017/</a>  but it looks like it only goes back to 2015...</span></div><div><span style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><br></span></div><div><span style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">(and sorry to ramble a bit)</span></div><div>

<span style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">Slightly</span> off topic; but I ran into a feature of the new optimizer that shuffles commands.... I had a critical section lock that it ended up clearing the locking bit, before releasing the other value; can defiantly see lots of code breaking from that; firefox wants to only build with 15.6 but community is only 15.5 or 15.8 preview...  (I fixed the codea dding 'volatile , and referencing the other value with a computation that resulted with 0 instead.)<br></div><div><br></div><div>Sometimes code is in a certain order for specific reasons :) Sometims, it can be shuffled ....   (a=1;b=2;) ~~ (b=2;a=1) (same result different order)</div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"></div><div class="gmail_extra">sigh... of course (though be careful with the term does not and cannot and zero support - I am a thinkin I could get CMake to support CUDA 8 in VS2017 - if I realy wanted to - I mean it's not realy VS/MSVC doing the compiling is it?-rhetorical).  This is making the case for what I had to do in the 2.8 days (well also again when NVIDIA could not decide on where to put their.... stuff in the file system and CMake was always one version or so behind) and roll my own CMake cuda support... yes this happened... and it could again.  Time to look back into my old svn tree.  sweet... kickin it with svn again the good old days.<br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div></div>
-- <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/CMake_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/support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/consulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/training.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/opensource/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/listinfo/cmake</a><br>
</blockquote></div></div>