@@ -64,18 +64,21 @@ jobs:
64
64
BUILD_ENV : build_binary
65
65
BUILD_TARGET : ${{ matrix.host-machine.build-target }}
66
66
BUILD_VARIANT : cuda
67
- BUILD_CUDA_VERSION : ${{ matrix.cuda-version }}
67
+ BUILD_CUDA_VERSION : ${{ matrix.host-machine. cuda-version }}
68
68
continue-on-error : true
69
69
strategy :
70
70
# Don't fast-fail all the other builds if one of the them fails
71
71
fail-fast : false
72
72
matrix :
73
73
host-machine : [
74
- { arch: x86, instance: "linux.24xlarge", build-target: "default" },
75
- { arch: x86, instance: "linux.8xlarge.memory", build-target: "genai" },
74
+ { arch: x86, instance: "linux.24xlarge", build-target: "default", cuda-version: "11.8.0" },
75
+ { arch: x86, instance: "linux.24xlarge", build-target: "default", cuda-version: "12.6.3" },
76
+ { arch: x86, instance: "linux.24xlarge", build-target: "default", cuda-version: "12.8.0" },
77
+ # GenAI is unable to support 11.8.0 anymore as of https://github.com/pytorch/FBGEMM/pull/4138
78
+ { arch: x86, instance: "linux.8xlarge.memory", build-target: "genai", cuda-version: "12.6.3" },
79
+ { arch: x86, instance: "linux.8xlarge.memory", build-target: "genai", cuda-version: "12.8.0" },
76
80
]
77
81
python-version : [ "3.9", "3.10", "3.11", "3.12", "3.13" ]
78
- cuda-version : [ "11.8.0", "12.6.3", "12.8.0" ]
79
82
compiler : [ "gcc", "clang" ]
80
83
81
84
steps :
@@ -106,18 +109,18 @@ jobs:
106
109
run : . $PRELUDE; install_build_tools $BUILD_ENV
107
110
108
111
- name : Install CUDA
109
- run : . $PRELUDE; install_cuda $BUILD_ENV ${{ matrix.cuda-version }}
112
+ run : . $PRELUDE; install_cuda $BUILD_ENV ${{ matrix.host-machine. cuda-version }}
110
113
111
114
# Install via PIP to avoid defaulting to the CPU variant if the GPU variant of the day is not ready
112
115
- name : Install PyTorch Nightly
113
- run : . $PRELUDE; install_pytorch_pip $BUILD_ENV ${{ (github.event_name == 'workflow_dispatch' && github.event.inputs.pytorch_channel_version) || 'nightly' }} cuda/${{ matrix.cuda-version }}
116
+ run : . $PRELUDE; install_pytorch_pip $BUILD_ENV ${{ (github.event_name == 'workflow_dispatch' && github.event.inputs.pytorch_channel_version) || 'nightly' }} cuda/${{ matrix.host-machine. cuda-version }}
114
117
115
118
- name : Collect PyTorch Environment Info
116
119
if : ${{ success() || failure() }}
117
120
run : if . $PRELUDE && which conda; then collect_pytorch_env_info $BUILD_ENV; fi
118
121
119
122
- name : Install cuDNN
120
- run : . $PRELUDE; install_cudnn $BUILD_ENV "$(pwd)/build_only/cudnn" ${{ matrix.cuda-version }}
123
+ run : . $PRELUDE; install_cudnn $BUILD_ENV "$(pwd)/build_only/cudnn" ${{ matrix.host-machine. cuda-version }}
121
124
122
125
- name : Prepare FBGEMM_GPU Build
123
126
run : . $PRELUDE; cd fbgemm_gpu; prepare_fbgemm_gpu_build $BUILD_ENV
@@ -128,7 +131,7 @@ jobs:
128
131
- name : Upload Built Wheel as GHA Artifact
129
132
uses : actions/upload-artifact@v4
130
133
with :
131
- name : fbgemm_${{ matrix.host-machine.build-target }}_${{ matrix.host-machine.arch }}_${{ matrix.compiler }}_py${{ matrix.python-version }}_cu${{ matrix.cuda-version }}.whl
134
+ name : fbgemm_${{ matrix.host-machine.build-target }}_${{ matrix.host-machine.arch }}_${{ matrix.compiler }}_py${{ matrix.python-version }}_cu${{ matrix.host-machine. cuda-version }}.whl
132
135
path : fbgemm_gpu/dist/*.whl
133
136
if-no-files-found : error
134
137
@@ -147,7 +150,7 @@ jobs:
147
150
BUILD_ENV : build_binary
148
151
BUILD_TARGET : ${{ matrix.build-target }}
149
152
BUILD_VARIANT : cuda
150
- BUILD_CUDA_VERSION : ${{ matrix.cuda-version }}
153
+ BUILD_CUDA_VERSION : ${{ matrix.build. cuda-version }}
151
154
ENFORCE_CUDA_DEVICE : 1
152
155
strategy :
153
156
fail-fast : false
@@ -158,9 +161,14 @@ jobs:
158
161
# https://hud.pytorch.org/metrics
159
162
# { arch: x86, instance: "linux.gcp.a100" },
160
163
]
161
- build-target : [ "default", "genai" ]
164
+ build : [
165
+ { build-target: "default", cuda-version: "11.8.0" },
166
+ { build-target: "default", cuda-version: "12.6.3" },
167
+ { build-target: "default", cuda-version: "12.8.0" },
168
+ { build-target: "genai", cuda-version: "12.6.3" },
169
+ { build-target: "genai", cuda-version: "12.8.0" },
170
+ ]
162
171
python-version : [ "3.9", "3.10", "3.11", "3.12", "3.13" ]
163
- cuda-version : [ "11.8.0", "12.6.3", "12.8.0" ]
164
172
# Specify exactly ONE CUDA version for artifact publish
165
173
cuda-version-publish : [ "12.6.3" ]
166
174
compiler : [ "gcc", "clang" ]
@@ -177,7 +185,7 @@ jobs:
177
185
# Cannot upgrade to actions/download-artifact@v4 yet because GLIBC on the instance is too old
178
186
uses : actions/download-artifact@v4
179
187
with :
180
- name : fbgemm_${{ matrix.build-target }}_${{ matrix.host-machine.arch }}_${{ matrix.compiler }}_py${{ matrix.python-version }}_cu${{ matrix.cuda-version }}.whl
188
+ name : fbgemm_${{ matrix.build.build -target }}_${{ matrix.host-machine.arch }}_${{ matrix.compiler }}_py${{ matrix.python-version }}_cu${{ matrix.build .cuda-version }}.whl
181
189
182
190
# Use PyTorch test infrastructure action - https://github.com/pytorch/test-infra/blob/main/.github/actions/setup-nvidia/action.yml
183
191
- name : Install NVIDIA Drivers and NVIDIA-Docker Runtime
@@ -203,11 +211,11 @@ jobs:
203
211
run : . $PRELUDE; install_cxx_compiler $BUILD_ENV gcc
204
212
205
213
- name : Install CUDA
206
- run : . $PRELUDE; install_cuda $BUILD_ENV ${{ matrix.cuda-version }}
214
+ run : . $PRELUDE; install_cuda $BUILD_ENV ${{ matrix.build. cuda-version }}
207
215
208
216
# Install via PIP to avoid defaulting to the CPU variant if the GPU variant of the day is not ready
209
217
- name : Install PyTorch Nightly
210
- run : . $PRELUDE; install_pytorch_pip $BUILD_ENV ${{ (github.event_name == 'workflow_dispatch' && github.event.inputs.pytorch_channel_version) || 'nightly' }} cuda/${{ matrix.cuda-version }}
218
+ run : . $PRELUDE; install_pytorch_pip $BUILD_ENV ${{ (github.event_name == 'workflow_dispatch' && github.event.inputs.pytorch_channel_version) || 'nightly' }} cuda/${{ matrix.build. cuda-version }}
211
219
212
220
- name : Collect PyTorch Environment Info
213
221
if : ${{ success() || failure() }}
@@ -224,7 +232,7 @@ jobs:
224
232
run : . $PRELUDE; test_all_fbgemm_gpu_modules $BUILD_ENV
225
233
226
234
- name : Push Wheel to PyPI
227
- if : ${{ (github.event_name == 'schedule' && matrix.cuda-version == matrix.cuda-version-publish) || (github.event_name == 'workflow_dispatch' && github.event.inputs.publish_to_pypi == 'true' && matrix.cuda-version == matrix.cuda-version-publish) }}
235
+ if : ${{ (github.event_name == 'schedule' && matrix.build. cuda-version == matrix.cuda-version-publish) || (github.event_name == 'workflow_dispatch' && github.event.inputs.publish_to_pypi == 'true' && matrix.build .cuda-version == matrix.cuda-version-publish) }}
228
236
env :
229
237
PYPI_TOKEN : ${{ secrets.PYPI_TOKEN }}
230
238
run : . $PRELUDE; publish_to_pypi $BUILD_ENV "$PYPI_TOKEN" *.whl
0 commit comments