Currently whenever we compile the device runtime we get the following
'Mapping.cpp:32:32: warning: inline function '_OMP::impl::getGridValue'
is not defined [-Wundefined-inline]' warning. This can be silenced by
removing the constexpr attribute for this function. Doing this doesn't
change the generated bitcode at all but prevents the screen from getting
filled with warnings whenver we build the runtime.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Nvm, saw the commit message
This is a variant thing iiuc. Can we fix the warning without losing the O0 compile time constant by defining a non-variant version of this function?
Comment Actions
Says so in the commit message Mapping.cpp:32:32: warning: inline function '_OMP::impl::getGridValue' is not defined [-Wundefined-inline]. I'm not sure why it happened here. Might be some weird interaction with variant or something, I just wanted to stop getting these warnings every time I built the runtime and this was the easiest way.