Skip to content

The enable-cuda-compat hook should support Tegra-based systems #1271

@elezar

Description

@elezar

The current injection of the enable-cuda-compat hook checks the version suffix of the libcuda.so.RM_VERSION file to determine the host driver version. On tegra-based systems this is not correct as the file has the name libcuda.so.1.1 meaning that the compat libraries in a container are ALWAYS used.

The CDI spec generation for Tegra-based systems (mode=csv) must be updated to:

  1. read the driver version from nvml if available
  2. update the generation of the enable-cuda-compat hook to handle the orin case.

This means that if an Orin system is detected, alternative CUDA compat libraries (rooted at /usr/local/cuda/compat-orin in the container). If these compat libraries are not present, then the host drivers will always be used effectively disabling CUDA forward compat on Orin systems.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions