[CMake] CMake with two C++ compilers
JR Cary
cary at txcorp.com
Fri May 10 12:09:26 EDT 2019
Thanks, Chuck.
I was not clear on my question, which is: When I specify the two
compilers, how
do I get, e.g., CMAKE_CUDA_HOST_COMPILER_ID and
CMAKE_CUDA_HOST_COMPILER_VERSION?
I need these to determine consistency between the CUDA version and the
host compiler
version, so that I can disable CUDA when these are incmpatible.
Thanks...John
On 5/10/19 9:17 AM, Chuck Atkins wrote:
> Hi John,
> Two different compilers in the same project for the same language is
> messy, but in your case it's directly supproted as a special case for
> cuda using the CMAKE_CUDA_HOST_COMPILER CMake variable or the
> CUDAHOSTCXX environment variable.
>
> ----------
> Chuck Atkins
> Staff R&D Engineer, Scientific Computing
> Kitware, Inc.
>
>
> On Wed, May 8, 2019 at 7:27 AM JR Cary <cary at txcorp.com
> <mailto:cary at txcorp.com>> wrote:
>
> Is there a standard way to deal with 2 C++ compilers? Getting both
> there versions, etc.?
>
> I need one compiler for compiling ordinary C++ code and a different
> one to use as the host compiler for CUDA.
>
> Thx......John Cary
> --
>
> Powered by www.kitware.com <http://www.kitware.com>
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Kitware offers various services to support the CMake community.
> For more information on each offering, please visit:
>
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> https://cmake.org/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20190510/a09f4c6b/attachment.html>
More information about the CMake
mailing list