Skip to content

torch.cuda.get_device_capability() in gen_trtllm_comm_module() breaks AOT build #1256

Open
@tiran

Description

@tiran

In PR #1249 you added code that uses at torch.cuda.get_device_capability(). This break ahead of time compilation. get_device_capability() only works on machines with CUDA hardware. On build machines without CUDA hardware, the function fails:

RuntimeError: Found no NVIDIA driver on your system. Please check that you have an NVIDIA GPU and installed a driver from http://www.nvidia.com/Download/index.aspx

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