According to the CUDA Programming Guide this is prohibited in
whole program compilation mode. This makes sense because external
references cannot be satisfied in that mode anyway. However,
such variables are allowed in separate compilation mode which
is a valid use case.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
LGTM.
test/SemaCUDA/extern-shared.cu | ||
---|---|---|
4 | Nit. -verify=rdc is somewhat confusing as there's no rdc prefixes in the checks below. Perhaps something along the lines of -verify=there-should-be-no-errors would be more descriptive. |
test/SemaCUDA/extern-shared.cu | ||
---|---|---|
4 | There is: rdc-no-diagnostics. But given that you missed it, maybe I should move the comment declarations are fine between RUN lines and no-diagnostics? Don't know if that helps much though... |
test/SemaCUDA/extern-shared.cu | ||
---|---|---|
4 | Oh! I did miss it. Never mind then. |
Nit. -verify=rdc is somewhat confusing as there's no rdc prefixes in the checks below. Perhaps something along the lines of -verify=there-should-be-no-errors would be more descriptive.