If I declare/define a variable like this:
__device__ constexpr int test{5};
I get an error
error: A
__device__variable cannot be marked constexpr
I can't find in the guide that restriction. The guide says:
I.4.20.9.
__managed__and__shared__variables cannot be marked with the keyword constexpr.
Moreover, my colleague with the same major compiler version (11) doesn't have this error.
What exactly causes this error on my machine?