This bugzilla service is closed. All entries have been migrated to
Bug 1462 - __CUDACC_VER__ is deprecated in CUDA 9
Summary: __CUDACC_VER__ is deprecated in CUDA 9
Alias: None
Product: Eigen
Classification: Unclassified
Component: Core - general (show other bugs)
Version: unspecified
Hardware: GPU (CUDA) All
: Normal Compilation Problem
Assignee: Nobody
Depends on:
Reported: 2017-08-23 15:48 UTC by Pieter Noordhuis
Modified: 2019-12-04 17:10 UTC (History)
3 users (show)


Description Pieter Noordhuis 2017-08-23 15:48:32 UTC
In the recently released CUDA 9 RC, the __CUDACC_VER__ macro is deprecated. It is set to an error string, so it will cause compilation errors. The recommended macro's to use are __CUDACC_VER_MAJOR__, __CUDACC_VER_MINOR__, and __CUDACC_VER_PATCH__.

I worked around this problem by #undef'ing the error string macro and resetting it to behave as it previously did. Ideally this is addressed in Eigen itself though.

I verified this is a problem in 3.3, but see the macro is still used in trunk.
Comment 1 Gael Guennebaud 2017-08-24 09:39:21 UTC
Thank you for the report. Fixed: (3.3)
Comment 2 Pieter Noordhuis 2017-08-24 15:06:07 UTC
Thanks for the super-fast turnaround!
Comment 3 Nobody 2019-12-04 17:10:06 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance:

Note You need to log in before you can comment on or make changes to this bug.