opensubdiv 3.3.0 assumes the compute_20 architecture for any CUDA version >= 6, however, this has been dropped in CUDA 9. This causes the build to fail under CUDA 9. A pull request has been submitted upstream to correct this problem: https://github.com/PixarAnimationStudios/OpenSubdiv/pull/961 Reproducible: Always
Please describe the actual problem, possibly by posting some output showing where it (starts to) fail(s).
Build fails early on when nvcc is invoked with the the GPU architecture set to compute_20 which is selected by the build system for any CUDA version >=6: nvcc fatal : Value 'compute_20' is not defined for option 'gpu-architecture'
This is the offending line in the CMakeLists.txt file: set( OSD_CUDA_NVCC_FLAGS --gpu-architecture compute_20 ) I don't have nVidia, so I'm not familiar with it. What is the lowest version that I can change this to? I'll do something like less than CUDA 8 set to compute_20, else set to next version up.
Nevermind, I just found a patch to fix this. It does what I said about adding a new if else statement.
Created attachment 511538 [details, diff] opensubdiv-3.3.0-add-CUDA9-compatibility Please test this patch for me as I can't use CUDA. Many thanks.
(In reply to Jonathan Scruggs from comment #5) > Created attachment 511538 [details, diff] [details, diff] > opensubdiv-3.3.0-add-CUDA9-compatibility > > Please test this patch for me as I can't use CUDA. > > Many thanks. That is my patch that I linked to when I opened the ticket. I've tested it; it works.
Ah. Thanks for the patch. I'll add it after my other PRs have gone through.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=02baca534283f0b8bfda69c603033418726a34b2 commit 02baca534283f0b8bfda69c603033418726a34b2 Author: Jonathan Scruggs <j.scruggs@gmail.com> AuthorDate: 2017-12-24 18:37:08 +0000 Commit: David Seifert <soap@gentoo.org> CommitDate: 2017-12-24 22:15:56 +0000 media-libs/opensubdiv: Add CUDA 9 compatibility patch Closes: https://bugs.gentoo.org/641242 Closes: https://github.com/gentoo/gentoo/pull/6624 .../opensubdiv-3.3.0-add-CUDA9-compatibility.patch | 25 ++++++++++++++++++++++ media-libs/opensubdiv/opensubdiv-3.3.0.ebuild | 7 +++--- 2 files changed, 29 insertions(+), 3 deletions(-)