File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -137,7 +137,10 @@ pub struct CudaBuilder {
137
137
/// errors (CUDA error code: `700`).
138
138
///
139
139
/// The default is `false`, which places all statics in global memory. This avoids
140
- /// such errors but may reduce performance and use more general memory.
140
+ /// such errors but may reduce performance and use more general memory. When set to
141
+ /// `false`, you can still annotate `static` variables with
142
+ /// `#[cuda_std::address_space(constant)]` to place them in constant memory
143
+ /// manually. This option only affects automatic placement.
141
144
///
142
145
/// Future versions may support smarter placement and user-controlled
143
146
/// packing/spilling strategies.
@@ -304,7 +307,9 @@ impl CudaBuilder {
304
307
/// errors (CUDA error code: `700`).
305
308
///
306
309
/// If `false`, all statics are placed in global memory. This avoids such errors but
307
- /// may reduce performance and use more general memory.
310
+ /// may reduce performance and use more general memory. You can still annotate
311
+ /// `static` variables with `#[cuda_std::address_space(constant)]` to place them in
312
+ /// constant memory manually as this option only affects automatic placement.
308
313
///
309
314
/// Future versions may support smarter placement and user-controlled
310
315
/// packing/spilling strategies.
You can’t perform that action at this time.
0 commit comments