Per the ebuild commit message: "Upstream only supports CUDA 8 with this release"
However, anything older than CUDA 9 does not support gcc > 5 and fails with the following error:
#error -- unsupported GNU version! gcc versions later than 5 are not supported!
Since gcc 6.4.0 is now the default in Gentoo, it is no longer possible to build with USE=cuda.
I am not sure, if this is finally a duplicate of #639384, or should be taken as new ticket.
(In reply to Jonas Stein from comment #1)
> I am not sure, if this is finally a duplicate of #639384, or should be taken
> as new ticket.
It is the same problem. Although, this does affect people still on 13.0 as well.
Would you be able to edit the ebuild to remove the hard depend on CUDA 8 to try CUDA 9? If this works, then I can change the ebuild. I think Blender 2.79 fixes this issue. BTW, this is one reason I really don't like CUDA.
(In reply to Jonathan Scruggs from comment #3)
> Would you be able to edit the ebuild to remove the hard depend on CUDA 8 to
> try CUDA 9? If this works, then I can change the ebuild. I think Blender
> 2.79 fixes this issue. BTW, this is one reason I really don't like CUDA.
It builds with CUDA 9.1 (from the junkdrawer overlay) and completed the "BMW benchmark" on the GPU.
The bug has been closed via the following commit(s):
Author: Jonathan Scruggs <firstname.lastname@example.org>
AuthorDate: 2017-12-24 17:24:26 +0000
Commit: David Seifert <email@example.com>
CommitDate: 2017-12-25 16:09:12 +0000
media-gfx/blender: Version bump to 2.79
Version bump to 2.79
Allow CUDA v9 to be used for GCC 6.4 compatibility.
Call cmake-utils_src_prepare explicity.
Depend on virtual/jack.
Allow DRI to be writable to avoid sandbox violations.
media-gfx/blender/Manifest | 1 +
media-gfx/blender/blender-2.79.ebuild | 287 ++++++++++++++++++++++++++++++++++
media-gfx/blender/metadata.xml | 6 +
3 files changed, 294 insertions(+)