facebookresearch / habitat-sim

A flexible, high-performance 3D simulator for Embodied AI research.
https://aihabitat.org/
MIT License
2.45k stars 404 forks source link

Avoid setting CUDA device when there is no GPU. #2378

Closed 0mdc closed 2 months ago

0mdc commented 2 months ago

Motivation and Context

This change omits setCudaDevice when gpu_device_id == -1.

Hydra override:

habitat.simulator.habitat_sim_v0.gpu_device_id=-1

Source: https://github.com/facebookresearch/habitat-sim/commit/a26f3accbce93caa0cecf9841b3f2217b96c002d

How Has This Been Tested

Tested on cpu-only AWS servers.

Types of changes

Checklist