Subject: [Boost-bugs] [Boost C++ Libraries] #13152: nvcc Error: Boost 1.64.0 & CUDA 9.0
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2017-08-09 11:43:38
#13152: nvcc Error: Boost 1.64.0 & CUDA 9.0
-------------------------------------------------+-------------------------
Reporter: Alexander Korsunsky <a.korsunsky@â¦> | Owner: John
| Maddock
Type: Bugs | Status: new
Milestone: To Be Determined | Component: config
Version: Boost 1.64.0 | Severity: Showstopper
Keywords: cuda, nvcc |
-------------------------------------------------+-------------------------
Compilation of files that include Boost fail with the CUDA Toolkit version
9.
The reason for that is that at boost/config/compiler/nvcc.hpp, line 22 and
26 you use the macro `__CUDACC_VER__` for version checking, but the symbol
has been deprecated in CUDA 9.
Line 64 in `crt/common_functions.h` of the CUDA toolkit now reads:
{{{
#define __CUDACC_VER__ "__CUDACC_VER__ is no longer supported. Use
__CUDACC_VER_MAJOR__, __CUDACC_VER_MINOR__, and __CUDACC_VER_BUILD__
instead."
}}}
The fix seems simple enough, instead of checking for the whole version,
you could check separately for `__CUDACC_VER_MAJOR__` and
`__CUDACC_VER_MINOR__` .
-- Ticket URL: <https://svn.boost.org/trac10/boost/ticket/13152> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-08-09 11:46:59 UTC