Skip to content

Fix Habitat installation Issues #20

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions .github/workflows/whl-build-all.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:

- name: Upload to S3
run: |
aws s3 cp index.html s3://centml-habitat/habitat/
aws s3 cp index.html s3://centml-releases/habitat/

whl-build-cu102:
runs-on: [self-hosted, cu102]
Expand Down Expand Up @@ -62,7 +62,7 @@ jobs:

- name: Upload wheels to S3
run: |
aws s3 cp analyzer/dist/ s3://centml-habitat/habitat/wheels-cu102/ --recursive --exclude "*" --include "*.whl"
aws s3 cp analyzer/dist/ s3://centml-releases/habitat/wheels-cu102/ --recursive --exclude "*" --include "*.whl"

- name: Create index.html
run: |
Expand All @@ -72,7 +72,7 @@ jobs:

- name: Upload index.html to S3
run: |
aws s3 cp index.html s3://centml-habitat/habitat/wheels-cu102/
aws s3 cp index.html s3://centml-releases/habitat/wheels-cu102/

whl-build-cu111:
runs-on: [self-hosted, cu111]
Expand Down Expand Up @@ -113,7 +113,7 @@ jobs:

- name: Upload wheels to S3
run: |
aws s3 cp analyzer/dist/ s3://centml-habitat/habitat/wheels-cu111/ --recursive --exclude "*" --include "*.whl"
aws s3 cp analyzer/dist/ s3://centml-releases/habitat/wheels-cu111/ --recursive --exclude "*" --include "*.whl"

- name: Create index.html
run: |
Expand All @@ -123,7 +123,7 @@ jobs:

- name: Upload index.html to S3
run: |
aws s3 cp index.html s3://centml-habitat/habitat/wheels-cu111/
aws s3 cp index.html s3://centml-releases/habitat/wheels-cu111/

whl-build-cu113:
runs-on: [self-hosted, cu113]
Expand Down Expand Up @@ -164,7 +164,7 @@ jobs:

- name: Upload wheels to S3
run: |
aws s3 cp analyzer/dist/ s3://centml-habitat/habitat/wheels-cu113/ --recursive --exclude "*" --include "*.whl"
aws s3 cp analyzer/dist/ s3://centml-releases/habitat/wheels-cu113/ --recursive --exclude "*" --include "*.whl"

- name: Create index.html
run: |
Expand All @@ -174,7 +174,7 @@ jobs:

- name: Upload index.html to S3
run: |
aws s3 cp index.html s3://centml-habitat/habitat/wheels-cu113/
aws s3 cp index.html s3://centml-releases/habitat/wheels-cu113/

whl-build-cu116:
runs-on: [self-hosted, cu116]
Expand Down Expand Up @@ -221,7 +221,7 @@ jobs:

- name: Upload wheels to S3
run: |
aws s3 cp analyzer/dist/ s3://centml-habitat/habitat/wheels-cu116/ --recursive --exclude "*" --include "*.whl"
aws s3 cp analyzer/dist/ s3://centml-releases/habitat/wheels-cu116/ --recursive --exclude "*" --include "*.whl"

- name: Create index.html
run: |
Expand All @@ -231,7 +231,7 @@ jobs:

- name: Upload index.html to S3
run: |
aws s3 cp index.html s3://centml-habitat/habitat/wheels-cu116/
aws s3 cp index.html s3://centml-releases/habitat/wheels-cu116/

whl-build-cu117:
runs-on: [self-hosted, cu117]
Expand Down Expand Up @@ -272,7 +272,7 @@ jobs:

- name: Upload wheels to S3
run: |
aws s3 cp analyzer/dist/ s3://centml-habitat/habitat/wheels-cu117/ --recursive --exclude "*" --include "*.whl"
aws s3 cp analyzer/dist/ s3://centml-releases/habitat/wheels-cu117/ --recursive --exclude "*" --include "*.whl"

- name: Create index.html
run: |
Expand All @@ -282,4 +282,4 @@ jobs:

- name: Upload index.html to S3
run: |
aws s3 cp index.html s3://centml-habitat/habitat/wheels-cu117/
aws s3 cp index.html s3://centml-releases/habitat/wheels-cu117/
22 changes: 13 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,17 @@ Currently, we have predictors for the following Nvidia GPUs:

### 1. Install CUPTI

- CUPTI is a profiling interface required by Habitat. Select your version of CUDA [here](https://developer.nvidia.com/cuda-toolkit-archive) and following the instructions to add NVIDIA's repository. Then, install CUPTI with:

```bash
sudo apt-get install cuda-cupti-xx-x
```

where `xx-x` represents the version of CUDA you have installed.
CUPTI is a profiling interface required by Habitat. Select your version of CUDA [here](https://developer.nvidia.com/cuda-toolkit-archive) and follow the instructions to add NVIDIA's repository. Then, install CUPTI with:
```bash
sudo apt-get install cuda-cupti-xx-x
```
where `xx-x` represents the version of CUDA you have installed.

Alternatively, if you do not have root access on your machine, you can use `conda` to install CUPTI. Select your version of CUDA [here](https://anaconda.org/nvidia/cuda-cupti) and follow the instructions. For example if you have CUDA 11.6.0, you can install CUPTI with:
```bash
conda install -c "nvidia/label/cuda-11.6.0" cuda-cupti
```
After installing CUPTI, add `$CONDA_HOME/extras/CUPTI/lib64/` to `LD_LIBRARY_PATH` to ensure the library is linked.

### 2. Install Habitat

Expand All @@ -61,15 +65,15 @@ You can install via pip if you have the following versions of CUDA and Python
Install via pip with the following command

```bash
pip install https://centml.ai/habitat/wheels/habitat_predict-1.0.0-20221123+cuYYY-pyZZ-none-any.whl
pip install http://centml-releases.s3-website.us-east-2.amazonaws.com/habitat/wheels/habitat_predict-1.0.0-20221123+cuYYY-pyZZ-none-any.whl
```

where YYY is your CUDA version and ZZ is your Python version.

For example, if you are using CUDA 10.2 and Python 3.7):

```bash
pip install https://centml.ai/habitat/wheels/habitat_predict-1.0.0-20221123+cu102-py37-none-any.whl
pip install http://centml-releases.s3-website.us-east-2.amazonaws.com/habitat/wheels/habitat_predict-1.0.0-20221123+cu102-py37-none-any.whl
```

If you do not find matching version of CUDA and Python above, you need to build Habitat from source with the following instructions
Expand Down