FS#51438 - [cuda] don't remove gcc version check

Attached to Project: Community Packages
Opened by Sebastiaan Lokhorst (lonaowna) - Tuesday, 18 October 2016, 23:19 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Monday, 24 October 2016, 00:17 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sven-Hendrik Haase (Svenstaro)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Please don't remove the gcc version check the CUDA compiler does (PKGBUILD line 58):
sed -i "/unsupported GNU/d" $pkgdir/opt/cuda/include/host_config.h

When compiling CUDA code, it is easy to accidentally use GCC 6 instead of GCC 5. This check points that out nice and clear.

Without the check, you get a bunch of seemingly unrelated vague errors. Removing the check has no benefit.
This task depends upon

Closed by  Sven-Hendrik Haase (Svenstaro)
Monday, 24 October 2016, 00:17 GMT
Reason for closing:  Fixed
Comment by Doug Newgard (Scimmia) - Wednesday, 19 October 2016, 00:12 GMT
Have they fixed the problems with the change in gcc versioning another way? From what I remember, this was done because their checks were too strict and didn't work correctly with gcc 5+
Comment by Sebastiaan Lokhorst (lonaowna) - Wednesday, 19 October 2016, 00:22 GMT
The current CUDA 8.0 only works with GCC 5 (it *really* doesn't work with 6). Because of this, the Arch package now has gcc5 as dependency.
The check looks for GCC=5.x.x (which Arch users thus already have installed), so it is exactly as strict as it should be.
Comment by Sven-Hendrik Haase (Svenstaro) - Monday, 24 October 2016, 00:16 GMT
True, this check isn't useful anymore at this point. I will remove it.

Loading...