<div dir="auto">I tried using VS solutions and MSBuild but building was still serialized. Ninja is just better for Windows. </div><div class="gmail_extra"><br><div class="gmail_quote">On Jul 28, 2017 9:06 AM, "Robert Maynard" <<a href="mailto:robert.maynard@kitware.com">robert.maynard@kitware.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Just to clarify the CUDA and CMake situation.<br>
<br>
CMake 3.8 added the initial first class support of CUDA to CMake (<br>
instead of using FindCUDA ). This work only supports the makefile and<br>
ninja generators, which means that the visual studio IDE generator is<br>
not supported. This doesn't mean that the Visual Studio compiler isn't<br>
supported, as you still could use ninja or makefile with the VS<br>
compiler.<br>
<br>
CMake 3.9 added the support for the visual studio generator for CUDA.<br>
The approach that was used was to call out to the existing MSBuild<br>
CUDA extensions that NVIDIA provides. With 3.9 all generators are<br>
considered to be 'first class' in regards to CUDA.<br>
<br>
<br>
On Thu, Jul 27, 2017 at 9:28 PM, J. Caleb Wherry <<a href="mailto:calebwherry@gmail.com">calebwherry@gmail.com</a>> wrote:<br>
> Not sure I understand your question but Visual Studio support just lagged a<br>
> version for that feature. It is available in CMake 3.9:<br>
><br>
> <a href="https://cmake.org/cmake/help/v3.9/release/3.9.html" rel="noreferrer" target="_blank">https://cmake.org/cmake/help/<wbr>v3.9/release/3.9.html</a><br>
><br>
> Or are you asking before this version how was CUDA supported?<br>
><br>
> -Caleb<br>
><br>
> On Thu, Jul 27, 2017 at 9:07 PM Brian Davis <<a href="mailto:bitminer@gmail.com">bitminer@gmail.com</a>> wrote:<br>
>><br>
>><br>
>> Can someone explain to me the meaning of the statement at:<br>
>><br>
>> <a href="https://cmake.org/cmake/help/latest/release/3.8.html?highlight=cuda" rel="noreferrer" target="_blank">https://cmake.org/cmake/help/<wbr>latest/release/3.8.html?<wbr>highlight=cuda</a><br>
>><br>
>><br>
>> Make learned to support CUDA as a first-class language that can be enabled<br>
>> via the project() and enable_language() commands.<br>
>> CUDA is currently supported by the Makefile Generators and the Ninja<br>
>> generator on Linux, macOS, and Windows. *Support for the Visual Studio IDE<br>
>> is under development but not included in this release.*<br>
>> The NVIDIA CUDA Toolkit compiler (nvcc) is supported.<br>
>><br>
>> Specifically:<br>
>><br>
>> *Support for the Visual Studio IDE is under development but not included<br>
>> in this release.*<br>
>><br>
>> Is CUDA as a first class language not supported for seemingly second class<br>
>> citizens such as Visual Studio?<br>
>> --<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:<br>
>> <a href="http://www.cmake.org/Wiki/CMake_FAQ" rel="noreferrer" target="_blank">http://www.cmake.org/Wiki/<wbr>CMake_FAQ</a><br>
>><br>
>> Kitware offers various services to support the CMake community. For more<br>
>> 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/<wbr>support.html</a><br>
>> CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/<wbr>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/<wbr>training.html</a><br>
>><br>
>> Visit other Kitware open-source projects at<br>
>> <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
>><br>
>> Follow this link to subscribe/unsubscribe:<br>
>> <a href="http://public.kitware.com/mailman/listinfo/cmake" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/cmake</a><br>
><br>
> --<br>
> Sent from my iPhone 4s<br>
><br>
> --<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:<br>
> <a href="http://www.cmake.org/Wiki/CMake_FAQ" rel="noreferrer" target="_blank">http://www.cmake.org/Wiki/<wbr>CMake_FAQ</a><br>
><br>
> Kitware offers various services to support the CMake community. For more<br>
> 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/<wbr>support.html</a><br>
> CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/<wbr>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/<wbr>training.html</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://public.kitware.com/mailman/listinfo/cmake" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/cmake</a><br>
--<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/<wbr>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/<wbr>support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/<wbr>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/<wbr>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/<wbr>opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/cmake" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/cmake</a><br>
</blockquote></div></div>