mdspan icon indicating copy to clipboard operation
mdspan copied to clipboard

Internal compiler error with nvcc + gcc

Open michael-afanasiev opened this issue 4 years ago • 6 comments

Hi everyone,

I'm getting a compilation error with nvcc when using gcc as a host compiler. Using clang as a host compiler works, as does a CPU-only compilation. Godbolt link: https://godbolt.org/z/zrhP5zY9W.

Is this a bug, or am I misusing something here?

Thanks alot for your mdspan efforts! Really liking it so far.

michael-afanasiev avatar Sep 01 '21 19:09 michael-afanasiev

Quick note: looks to be due to the use of [[no_unique_address]] -- turning of its use in mdspan allows the compilation to complete: https://godbolt.org/z/6hEYeqhGn.

michael-afanasiev avatar Sep 17 '21 21:09 michael-afanasiev

@michael-afanasiev Thanks for diagnosing this issue! "Internal Compiler Error" generally indicates a compiler bug. Are you able to use the library without the [[no_unique_address]] feature for now?

mhoemmen avatar Sep 20 '21 20:09 mhoemmen

@mhoemmen Yes, not a huge deal -- the nvcc + gcc builds can just turn it off. Not sure how much interaction you have with the nvcc team, but if it helps i could close this in favor of a report over on the nvidia forums.

michael-afanasiev avatar Sep 20 '21 23:09 michael-afanasiev

@michael-afanasiev Please do submit this as an nvcc bug -- it helps to have more independent confirmation. Thanks!

mhoemmen avatar Sep 21 '21 15:09 mhoemmen

@mhoemmen -- sorry, let this slip for a bit. nvcc issue filled here.

michael-afanasiev avatar Oct 07 '21 15:10 michael-afanasiev

@michael-afanasiev Thanks for filing the ticket! : - )

mhoemmen avatar Oct 08 '21 18:10 mhoemmen

I think this is fixed.

crtrott avatar Nov 23 '22 00:11 crtrott