This bugzilla service is closed. All entries have been migrated to

Bug 1462

Summary: __CUDACC_VER__ is deprecated in CUDA 9
Product: Eigen Reporter: Pieter Noordhuis <pietern>
Component: Core - generalAssignee: Nobody <eigen.nobody>
Severity: Compilation Problem CC: chtz, gael.guennebaud, jacob.benoit.1
Priority: Normal    
Version: unspecified   
Hardware: GPU (CUDA)   
OS: All   

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: