File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -150,7 +150,10 @@ The function accepts the following arguments:
150
150
151
151
The compiler guarantees that the function will be called zero or more times
152
152
(depending on the amount of uniquely identifiable objects found in a program)
153
- _ before_ application's ` main() ` function, i.e. in a global constructor.
153
+ _ before_ application's ` main() ` function and _ before_ any other global
154
+ constructor defined in the same translation unit: this is needed to allow usages
155
+ of ` specialization_id ` and ` device_global ` variables from user-defined global
156
+ constructors.
154
157
155
158
That poses some restrictions on those uniquely identifiable object, i.e. that
156
159
they can't be used from another global object due to risk of accessing a
You can’t perform that action at this time.
0 commit comments