Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace pycuda with cuda-python in detect_target (facebookincubator#391)
Summary: NVIDIA provides official python API for CUDA - [NVIDIA/cuda-python](https://github.com/NVIDIA/cuda-python). We can use it instead of [inducer/pycuda](https://github.com/inducer/pycuda). Benefits of `cuda-python`: - Pre-installed in many NVIDIA containers (e.g. [tensorrt](https://catalog.ngc.nvidia.com/orgs/nvidia/containers/tensorrt) and [pytorch](https://catalog.ngc.nvidia.com/orgs/nvidia/containers/pytorch) containers) - `pip install` is fast. **No compilation** during the installation. - Versioning is more clear - it corresponds to cuda version (e.g. 11.6.1). In contrast `pycuda` uses date based versioning - e.g. 2022.2.2 which does not correspond to cuda version. - Official NVIDIA package Pull Request resolved: facebookincubator#391 Reviewed By: chenyang78 Differential Revision: D43962921 Pulled By: tenpercent fbshipit-source-id: a2a7a5c8fc627ba3f122f208ba38edc60afda396
- Loading branch information