<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<tt>Thanks, Chuck.<br>
<br>
I was not clear on my question, which is: When I specify the two
compilers, how<br>
do I get, e.g., CMAKE_CUDA_HOST_COMPILER_ID and
CMAKE_CUDA_HOST_COMPILER_VERSION?<br>
<br>
I need these to determine consistency between the CUDA version and
the host compiler<br>
version, so that I can disable CUDA when these are incmpatible.<br>
<br>
Thanks...John<br>
</tt><br>
<div class="moz-cite-prefix">On 5/10/19 9:17 AM, Chuck Atkins wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAOXZzG7UuVc0=Ac5LSLKHk=zthSFT01Q88ArturPB92OrM-WNg@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div>Hi John,</div>
<div>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 <span
style="font-family:monospace,monospace">CMAKE_CUDA_HOST_COMPILER</span>
CMake variable or the <span
style="font-family:monospace,monospace">CUDAHOSTCXX</span>
environment variable.</div>
<div><br>
</div>
<div>
<div>
<div dir="ltr" class="gmail_signature"
data-smartmail="gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">----------<br>
Chuck Atkins<br>
Staff R&D Engineer, Scientific Computing<br>
Kitware, Inc.<br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Wed, May 8, 2019 at 7:27 AM
JR Cary <<a href="mailto:cary@txcorp.com"
moz-do-not-send="true">cary@txcorp.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">Is
there a standard way to deal with 2 C++ compilers? Getting
both<br>
there versions, etc.?<br>
<br>
I need one compiler for compiling ordinary C++ code and a
different<br>
one to use as the host compiler for CUDA.<br>
<br>
Thx......John Cary<br>
-- <br>
<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer"
target="_blank" moz-do-not-send="true">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" moz-do-not-send="true">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" moz-do-not-send="true">http://cmake.org/cmake/help/support.html</a><br>
CMake Consulting: <a
href="http://cmake.org/cmake/help/consulting.html"
rel="noreferrer" target="_blank" moz-do-not-send="true">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" moz-do-not-send="true">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" moz-do-not-send="true">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" moz-do-not-send="true">https://cmake.org/mailman/listinfo/cmake</a><br>
</blockquote>
</div>
</blockquote>
<br>
</body>
</html>