Skip to content

Commit 4ce4e64

Browse files
authored
changed workflow to support compute capability 90 (H100) (#60)
Co-authored-by: John Calderon <[email protected]>
1 parent 4c21026 commit 4ce4e64

File tree

2 files changed

+3
-192
lines changed

2 files changed

+3
-192
lines changed

.github/workflows/whl-build-all.yaml

Lines changed: 2 additions & 191 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55

66
jobs:
77
create-habitat-index-html:
8-
needs: [whl-build-cu113, whl-build-cu116, whl-build-cu117, whl-build-cu118, whl-build-cu121]
8+
needs: [whl-build-cu118, whl-build-cu121]
99
runs-on: [self-hosted]
1010
steps:
1111
- name: Configure AWS Credentials
@@ -17,201 +17,12 @@ jobs:
1717

1818
- name: Create index.html
1919
run: |
20-
python3 /home/builduser/create_index.py habitat -f wheels-cu113 wheels-cu116 wheels-cu117 wheels-cu118 wheels-cu121
20+
python3 /home/builduser/create_index.py habitat -f wheels-cu118 wheels-cu121
2121
2222
- name: Upload to S3
2323
run: |
2424
aws s3 cp index.html s3://centml-releases/habitat/
2525
26-
whl-build-cu113:
27-
runs-on: [self-hosted, cu113]
28-
steps:
29-
- name: Configure AWS Credentials
30-
uses: aws-actions/configure-aws-credentials@v4
31-
with:
32-
aws-access-key-id: ${{ secrets.HABITAT_AWS_ACCESS_KEY }}
33-
aws-region: ${{ secrets.HABITAT_AWS_REGION }}
34-
aws-secret-access-key: ${{ secrets.HABITAT_AWS_SECRET_ACCESS_KEY }}
35-
36-
- name: Display host information
37-
run: |
38-
uname -a
39-
hostname
40-
pwd
41-
id
42-
ls -la
43-
44-
- name: Fetch repository
45-
uses: actions/checkout@v4
46-
47-
- name: Build Python3.8 wheel
48-
run: |
49-
./build_scripts/build_wheel.sh python3.8
50-
env:
51-
VERSION_CUDA_TAG: cu113
52-
EXTRA_REQUIRES: nvidia-cuda-cupti-cu11==11.7.101,nvidia-cuda-runtime-cu11==11.7.99
53-
54-
- name: Build Python3.9 wheel
55-
run: |
56-
./build_scripts/build_wheel.sh python3.9
57-
env:
58-
VERSION_CUDA_TAG: cu113
59-
EXTRA_REQUIRES: nvidia-cuda-cupti-cu11==11.7.101,nvidia-cuda-runtime-cu11==11.7.99
60-
61-
- name: Build Python3.10 wheel
62-
run: |
63-
./build_scripts/build_wheel.sh python3.10
64-
env:
65-
VERSION_CUDA_TAG: cu113
66-
EXTRA_REQUIRES: nvidia-cuda-cupti-cu11==11.7.101,nvidia-cuda-runtime-cu11==11.7.99
67-
68-
- name: Build Python3.11 wheel
69-
run: |
70-
./build_scripts/build_wheel.sh python3.11
71-
env:
72-
VERSION_CUDA_TAG: cu113
73-
EXTRA_REQUIRES: nvidia-cuda-cupti-cu11==11.7.101,nvidia-cuda-runtime-cu11==11.7.99
74-
75-
- name: Upload wheels to S3
76-
run: |
77-
aws s3 cp analyzer/dist/ s3://centml-releases/habitat/wheels-cu113/ --recursive --exclude "*" --include "*.whl"
78-
79-
- name: Create index.html
80-
run: |
81-
file_list=(analyzer/dist/*.whl)
82-
formatted_file_list=$(basename -a ${file_list[@]})
83-
python3 /home/builduser/create_index.py habitat_cu113 -f $formatted_file_list
84-
85-
- name: Upload index.html to S3
86-
run: |
87-
aws s3 cp index.html s3://centml-releases/habitat/wheels-cu113/
88-
89-
whl-build-cu116:
90-
runs-on: [self-hosted, cu116]
91-
steps:
92-
- name: Configure AWS Credentials
93-
uses: aws-actions/configure-aws-credentials@v4
94-
with:
95-
aws-access-key-id: ${{ secrets.HABITAT_AWS_ACCESS_KEY }}
96-
aws-region: ${{ secrets.HABITAT_AWS_REGION }}
97-
aws-secret-access-key: ${{ secrets.HABITAT_AWS_SECRET_ACCESS_KEY }}
98-
99-
- name: Display host information
100-
run: |
101-
uname -a
102-
hostname
103-
pwd
104-
id
105-
ls -la
106-
107-
- name: Fetch repository
108-
uses: actions/checkout@v4
109-
110-
- name: Build Python3.8 wheel
111-
run: |
112-
./build_scripts/build_wheel.sh python3.8
113-
env:
114-
VERSION_CUDA_TAG: cu116
115-
EXTRA_REQUIRES: nvidia-cuda-cupti-cu11==11.7.101,nvidia-cuda-runtime-cu11==11.7.99
116-
117-
- name: Build Python3.9 wheel
118-
run: |
119-
./build_scripts/build_wheel.sh python3.9
120-
env:
121-
VERSION_CUDA_TAG: cu116
122-
EXTRA_REQUIRES: nvidia-cuda-cupti-cu11==11.7.101,nvidia-cuda-runtime-cu11==11.7.99
123-
124-
- name: Build Python3.10 wheel
125-
run: |
126-
./build_scripts/build_wheel.sh python3.10
127-
env:
128-
VERSION_CUDA_TAG: cu116
129-
EXTRA_REQUIRES: nvidia-cuda-cupti-cu11==11.7.101,nvidia-cuda-runtime-cu11==11.7.99
130-
131-
- name: Build Python3.11 wheel
132-
run: |
133-
./build_scripts/build_wheel.sh python3.11
134-
env:
135-
VERSION_CUDA_TAG: cu116
136-
EXTRA_REQUIRES: nvidia-cuda-cupti-cu11==11.7.101,nvidia-cuda-runtime-cu11==11.7.99
137-
138-
- name: Upload wheels to S3
139-
run: |
140-
aws s3 cp analyzer/dist/ s3://centml-releases/habitat/wheels-cu116/ --recursive --exclude "*" --include "*.whl"
141-
142-
- name: Create index.html
143-
run: |
144-
file_list=(analyzer/dist/*.whl)
145-
formatted_file_list=$(basename -a ${file_list[@]})
146-
python3 /home/builduser/create_index.py habitat_cu116 -f $formatted_file_list
147-
148-
- name: Upload index.html to S3
149-
run: |
150-
aws s3 cp index.html s3://centml-releases/habitat/wheels-cu116/
151-
152-
whl-build-cu117:
153-
runs-on: [self-hosted, cu117]
154-
steps:
155-
- name: Configure AWS Credentials
156-
uses: aws-actions/configure-aws-credentials@v4
157-
with:
158-
aws-access-key-id: ${{ secrets.HABITAT_AWS_ACCESS_KEY }}
159-
aws-region: ${{ secrets.HABITAT_AWS_REGION }}
160-
aws-secret-access-key: ${{ secrets.HABITAT_AWS_SECRET_ACCESS_KEY }}
161-
162-
- name: Display host information
163-
run: |
164-
uname -a
165-
hostname
166-
pwd
167-
id
168-
ls -la
169-
170-
- name: Fetch repository
171-
uses: actions/checkout@v4
172-
173-
- name: Build Python3.8 wheel
174-
run: |
175-
./build_scripts/build_wheel.sh python3.8
176-
env:
177-
VERSION_CUDA_TAG: cu117
178-
EXTRA_REQUIRES: nvidia-cuda-cupti-cu11==11.7.101,nvidia-cuda-runtime-cu11==11.7.99
179-
180-
- name: Build Python3.9 wheel
181-
run: |
182-
./build_scripts/build_wheel.sh python3.9
183-
env:
184-
VERSION_CUDA_TAG: cu117
185-
EXTRA_REQUIRES: nvidia-cuda-cupti-cu11==11.7.101,nvidia-cuda-runtime-cu11==11.7.99
186-
187-
- name: Build Python3.10 wheel
188-
run: |
189-
./build_scripts/build_wheel.sh python3.10
190-
env:
191-
VERSION_CUDA_TAG: cu117
192-
EXTRA_REQUIRES: nvidia-cuda-cupti-cu11==11.7.101,nvidia-cuda-runtime-cu11==11.7.99
193-
194-
- name: Build Python3.11 wheel
195-
run: |
196-
./build_scripts/build_wheel.sh python3.11
197-
env:
198-
VERSION_CUDA_TAG: cu117
199-
EXTRA_REQUIRES: nvidia-cuda-cupti-cu11==11.7.101,nvidia-cuda-runtime-cu11==11.7.99
200-
201-
- name: Upload wheels to S3
202-
run: |
203-
aws s3 cp analyzer/dist/ s3://centml-releases/habitat/wheels-cu117/ --recursive --exclude "*" --include "*.whl"
204-
205-
- name: Create index.html
206-
run: |
207-
file_list=(analyzer/dist/*.whl)
208-
formatted_file_list=$(basename -a ${file_list[@]})
209-
python3 /home/builduser/create_index.py habitat_cu117 -f $formatted_file_list
210-
211-
- name: Upload index.html to S3
212-
run: |
213-
aws s3 cp index.html s3://centml-releases/habitat/wheels-cu117/
214-
21526
whl-build-cu118:
21627
runs-on: [self-hosted, cu118]
21728
steps:

cpp/src/cuda/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@ target_compile_options(
3434
"$<$<COMPILE_LANGUAGE:CUDA>:SHELL:-gencode arch=compute_70,code=sm_70>"
3535
"$<$<COMPILE_LANGUAGE:CUDA>:SHELL:-gencode arch=compute_75,code=sm_75>"
3636
"$<$<COMPILE_LANGUAGE:CUDA>:SHELL:-gencode arch=compute_80,code=sm_80>"
37-
#"$<$<COMPILE_LANGUAGE:CUDA>:SHELL:-gencode arch=compute_90,code=sm_90>"
37+
"$<$<COMPILE_LANGUAGE:CUDA>:SHELL:-gencode arch=compute_90,code=sm_90>"
3838
)

0 commit comments

Comments
 (0)