Files
custom_flashinfer/docker/install/install_python_packages.sh
Emilien Macchi 0ff65d8aee CI: install nvidia-nvshmem-cu12 (#1262)
## 📌 Description

Since we added nvidia-nvshmem-cu12 in setup.py, we need to install it in
the CI container image so unit tests can run when the module is loaded.


## 🔍 Related Issues

Related #1260

## 🚀 Pull Request Checklist

Thank you for contributing to FlashInfer! Before we review your pull
request, please make sure the following items are complete.

###  Pre-commit Checks

- [x] I have installed `pre-commit` by running `pip install pre-commit`
(or used your preferred method).
- [x] I have installed the hooks with `pre-commit install`.
- [x] I have run the hooks manually with `pre-commit run --all-files`
and fixed any reported issues.

> If you are unsure about how to set up `pre-commit`, see [the
pre-commit documentation](https://pre-commit.com/).

## 🧪 Tests

- [x] Tests have been added or updated as needed.
- [x] All tests are passing (`unittest`, etc.).

## Reviewer Notes

<!-- Optional: anything you'd like reviewers to focus on, concerns, etc.
-->

Signed-off-by: Emilien Macchi <emacchi@redhat.com>
2025-07-16 03:11:42 -07:00

24 lines
996 B
Bash

#!/bin/bash
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
set -e
set -u
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu128
pip3 install ninja pytest numpy scipy build pynvml cuda-python einops nvidia-nvshmem-cu12