This bugzilla service is closed. All entries have been migrated to https://gitlab.com/libeigen/eigen

Bug 1462

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

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.

https://github.com/facebookincubator/gloo/commit/0c9766691d77eb54c5a3293bc29621a82424fabb
Comment 1 Gael Guennebaud 2017-08-24 09:39:21 UTC
Thank you for the report. Fixed:

https://bitbucket.org/eigen/eigen/commits/9963b8123273/
https://bitbucket.org/eigen/eigen/commits/a201b8438d36/ (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 gitlab.com'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: https://gitlab.com/libeigen/eigen/issues/1462.