Currently we don't provide the compiler id and version for the CUDA
host compiler.
If you are interested in having this information can you please create
an issue on the cmake gitlab: https://gitlab.kitware.com/cmake/cmake
On Fri, May 10, 2019 at 12:09 PM JR Cary wrote:
>
> Thanks, Chuck.
>
> I
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 disab
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
ср, 8 мая 2019 г. в 14:27, JR Cary :
>
> 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
Here is the exact answer t
set the compiler for each build:
set(COMPILER /opt/gcc/bin)
cmake_force_c_compiler( "${COMPILER}gcc" GNU)
cmake_force_cxx_compiler("${COMPILER}g++" GNU)
--
Sent from: http://cmake.3232098.n2.nabble.com/
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
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
Please keep messages on-topic and check the C