Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GCC11] HeterogeneousCore/CUDAUtilities: array subscript is partly outside array bounds #34917

Closed
iarspider opened this issue Aug 17, 2021 · 6 comments

Comments

@iarspider
Copy link
Contributor

Build of HeterogeneousCore/CUDAUtilities fails with GCC11:

/data/cmsbld/jenkins/workspace/build-any-ib/w/tmp/BUILDROOT/e9c933c3dc3076293cddde4dd702cd2f/opt/cmssw/slc7_amd64_gcc11/cms/cmssw/CMSSW_12_1_X_2021-08-16-1100/src/HeterogeneousCore/CUDAUtilities/test/radixSort_t.cu: In function 'void go(bool) [with T = float; int NS = 2; U = float; LL = double]':
  /data/cmsbld/jenkins/workspace/build-any-ib/w/tmp/BUILDROOT/e9c933c3dc3076293cddde4dd702cd2f/opt/cmssw/slc7_amd64_gcc11/cms/cmssw/CMSSW_12_1_X_2021-08-16-1100/src/HeterogeneousCore/CUDAUtilities/test/radixSort_t.cu:145:15: error: array subscript 'long unsigned int[0]' is partly outside array bounds of 'float [1]' [-Werror=array-bounds]
   145 |           *k = (*k >> sh) << sh;
      |           ~~~~^~~~~~~~
/data/cmsbld/jenkins/workspace/build-any-ib/w/tmp/BUILDROOT/e9c933c3dc3076293cddde4dd702cd2f/opt/cmssw/slc7_amd64_gcc11/cms/cmssw/CMSSW_12_1_X_2021-08-16-1100/src/HeterogeneousCore/CUDAUtilities/test/radixSort_t.cu:139:6: note: while referencing 'k1'
  139 |         auto k1 = a[ind[j]];
      |      ^ 

Log file: https://cmssdt.cern.ch/SDT/cgi-bin/buildlogs/slc7_amd64_gcc11/CMSSW_12_1_X_2021-08-16-1100/HeterogeneousCore/CUDAUtilities

@cmsbuild
Copy link
Contributor

A new Issue was created by @iarspider .

@Dr15Jones, @perrotta, @dpiparo, @makortel, @smuzaffar, @qliphy can you please review it and eventually sign/assign? Thanks.

cms-bot commands are listed here

@iarspider
Copy link
Contributor Author

assign heterogeneous

@cmsbuild
Copy link
Contributor

New categories assigned: heterogeneous

@fwyzard,@makortel you have been requested to review this Pull request/Issue and eventually sign? Thanks

@makortel
Copy link
Contributor

@VinInn The error points to the same helper function we discussed in cms-patatrack/pixeltrack-standalone#195 (comment) .

@fwyzard
Copy link
Contributor

fwyzard commented Aug 18, 2021

See #34929 for a possible fix.

@smuzaffar
Copy link
Contributor

this has been fixed via #34929

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants