Skip to content

plugin.get_supported_configs() returns incorrect cuda_version_upper_bound and sm_arch? #10

Open

Description

@carterbox

On WSL with the following driver and device:

+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 580.118                Driver Version: 582.08         CUDA Version: 13.0     |
+-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA RTX 1000 Ada Gene...    On  |   00000000:01:00.0 Off |                  N/A |
| N/A   36C    P4             10W /   35W |       0MiB /   6141MiB |      0%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+

+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI              PID   Type   Process name                        GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|  No running processes found                                                             |
+-----------------------------------------------------------------------------------------+

I get the following supported configs:

plugin.get_supported_configs()
[VariantFeatureConfig(name='cuda_version_lower_bound', values=['13.0', '13', '12.20', '12.19', '12.18', '12.17', '12.16', '12.15', '12.14', '12.13', '12.12', '12.11', '12.10', '12.9', '12.8', '12.7', '12.6', '12.5', '12.4', '12.3', '12.2', '12.1', '12.0', '12', '11.20', '11.19', '11.18', '11.17', '11.16', '11.15', '11.14', '11.13', '11.12', '11.11', '11.10', '11.9', '11.8', '11.7', '11.6', '11.5', '11.4', '11.3', '11.2', '11.1', '11.0', '11'], multi_value=False), 
VariantFeatureConfig(name='cuda_version_upper_bound', values=['15.20', '15.19', '15.18', '15.17', '15.16', '15.15', '15.14', '15.13', '15.12', '15.11', '15.10', '15.9', '15.8', '15.7', '15.6', '15.5', '15.4', '15.3', '15.2', '15.1', '15.0', '15', '14.20', '14.19', '14.18', '14.17', '14.16', '14.15', '14.14', '14.13', '14.12', '14.11', '14.10', '14.9', '14.8', '14.7', '14.6', '14.5', '14.4', '14.3', '14.2', '14.1', '14.0', '14', '13.20', '13.19', '13.18', '13.17', '13.16', '13.15', '13.14', '13.13', '13.12', '13.11', '13.10', '13.9', '13.8', '13.7', '13.6', '13.5', '13.4', '13.3', '13.2', '13.1'], multi_value=False),
VariantFeatureConfig(name='sm_arch', values=['89_real', '88_real', '87_real', '86_real', '85_real', '84_real', '83_real', '82_real', '81_real', '80_real', '80_virtual'], multi_value=True)]

I believe there should be no cuda versions >=14 shown in supported configs because my driver would not meet the minimum version requirement for the next major version of the CTK.

It is conceivable that I could run a package build for any CTK before 13.0 because of our driver compatibility policy, so the lower bound seems fine.

The list of compatible sm_arch is missing every virtual arch that predates 80_virtual because the driver can for example take 20_virtual and compile it into a binary that will run on 89.

Activity

  1. changed the title [-]`plugin.get_supported_configs()` returns incorrect `cuda_version_upper_bound`[/-] [+]`plugin.get_supported_configs()` returns incorrect `cuda_version_upper_bound` and `sm_arch`?[/+] on Feb 12, 2026
  2. carterbox commented on Feb 12, 2026

    @carterbox
    Author

    While I guess it is technically possible that a binary supports something like cuda-version >=11.8,<15 because of minor version compatibility, I don't think we would see anything like cuda-version >=13.0,<13.5; the upper bound should always be the next major version.

  3. DEKHTIARJonathan commented on Feb 17, 2026

    @DEKHTIARJonathan
    Member

    hey hey Daniel.

    The way the plugin works is somehow reverse to the intuitive "matching direction" since we can't inspect the package for compatibility, we can only inspect the user machine.

    The plugin emits a few markers (aka. variant properties):

    • lower bound: >=
    • upper bound: <
    • SM archs (in the form of CMAKE flags)

    Now the confusing part.

    nvidia :: cuda_version_upper_bound :: 14 does not mean that this machine is compatible with binaries built with UMD < 14.

    It means that this machine is compatible with a package that declares you need UMD < 14.

    The "NV variant properties" are built reverse (in the compatibility sense):

    • they don't state: here is everything we are compatible with
    • they do state: if a package declares needing X Y Z, here is what is valid on this machine.

    Does that make sense ? It's unfortunately less intuitive than it could be, but the only way it could work because we can't take inputs from the "package" we are installing.

    Think about "I can't inspect the package you're installing but if you built with X Y Z CMake flags, then it's compatible with this machine"

  4. carterbox commented on Feb 18, 2026

    @carterbox
    Author

    I believe I understand.

    I still think that cuda_version_upper_bound need only declare major versions e.g. "11", "12", "14", "15", but I agree that the correct behavior of the plugin would be to declare compatibility with every version strictly greater than the one declared by my UMD.

    The list of compatible sm_arch is missing every virtual arch that predates 80_virtual because the driver can for example take 20_virtual and compile it into a binary that will run on 89.

    I also still think that there are virtual archs missing, but maybe I don't understand the meaning of multi_value=True)]

    For example, "I can't inspect the package you're installing but if you built with "30-virtual" CMake flags, then it's compatible with this machine (sm_89)".

  5. DEKHTIARJonathan commented on Feb 18, 2026

    @DEKHTIARJonathan
    Member

    SM compat rules is very crude right now. We will need to improve that in the future "it's works well enough ro now"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions