Skip to content

Potentially unnecessary CUDA dependency #995

Description

@a-gardner1

In point_to_mesh_distance, a call to torch.cuda.synchronize causes a fatal crash on systems without NVIDIA GPUs installed.

This synchronize call seems redundant since the _unbatched_naive_point_to_mesh_distance only gets called if the inputs are not on a CUDA device.

We encountered this when trying to use the CPU wheel at https://nvidia-kaolin.s3.us-east-2.amazonaws.com/torch-2.8.0_cpu.html in a CI pipeline on a machine without a GPU.

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