Skip to content

Commit 42b4ea5

Browse files
committed
Clarify all_target_features.
In particular, the backward- vs. forward-compatibility idea.
1 parent 49a7321 commit 42b4ea5

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

crates/nvvm/src/lib.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,8 +472,15 @@ impl NvvmArch {
472472
}
473473
}
474474

475-
/// Gets all target features up to and including this architecture. This effectively answers
475+
/// Gets all target features supported by this compilation target. This effectively answers
476476
/// the question "for a given compilation target, what architectural features can be used?"
477+
/// E.g. the "compute_90" compilation target includes features from "compute_80" and earlier.
478+
/// This set of features does not change over time.
479+
///
480+
/// Note that this is different to the question "for a given compilation target, what devices
481+
/// can the generated PTX code run on?" E.g. PTX code compiled for the "compute_90" compilation
482+
/// target can run on devices with compute capability 9.0 and later. This set of devices will
483+
/// expand over time, as new devices are released.
477484
///
478485
/// # Examples
479486
///

0 commit comments

Comments
 (0)