forked from pytorch/FBGEMM
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfbgemm_gpu_ci_genai_generic_infra.yml
More file actions
94 lines (85 loc) · 2.93 KB
/
Copy pathfbgemm_gpu_ci_genai_generic_infra.yml
File metadata and controls
94 lines (85 loc) · 2.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
# This workflow is used for FBGEMM_GPU-GenAI CI, and is meant to be used for
# copies of the FBGEMM repos hosted outside of the pytorch org.
name: FBGEMM_GPU GenAI CI (Generic Runner)
on:
# PR Trigger
#
pull_request:
branches: []
# Push Trigger (enable to catch errors coming out of multiple merges)
#
push:
branches: []
# Manual Trigger
#
workflow_dispatch:
inputs:
pytorch_channel_version:
description: Package Channel + Version to Use for PyTorch Installation, in `<channel>[/<version>]` Format
type: string
required: false
default: ""
concurrency:
# Cancel previous runs in the PR if a new commit is pushed
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
generate-build-matrix:
if: ${{ github.repository_owner != 'pytorch' }}
uses: ./.github/workflows/_fbgemm_gpu_generate_ci_matrix.yml
with:
repo-owner: ${{ github.repository_owner }}
repo-ref: ${{ github.ref }}
targets: genai
variant: cuda
jobtype: build
build:
needs: generate-build-matrix
uses: ./.github/workflows/_fbgemm_gpu_cuda_build.yml
with:
matrix: ${{ needs.generate-build-matrix.outputs.matrix }}
repo-ref: ${{ github.ref }}
pytorch-channel-version: ${{ (github.event_name == 'workflow_dispatch' && github.event.inputs.pytorch-channel-version) || 'nightly' }}
extra-env: >-
{
"DONT_USE_SUDO": 1,
"BUILD_INCLUDE_FB_ONLY": 1
}
generate-test-matrix:
needs: build
uses: ./.github/workflows/_fbgemm_gpu_generate_ci_matrix.yml
with:
repo-owner: ${{ github.repository_owner }}
repo-ref: ${{ github.ref }}
targets: genai
variant: cuda
jobtype: test
test:
needs: generate-test-matrix
uses: ./.github/workflows/_fbgemm_gpu_cuda_test.yml
with:
matrix: ${{ needs.generate-test-matrix.outputs.matrix }}
repo-ref: ${{ github.ref }}
pytorch-channel-version: ${{ (github.event_name == 'workflow_dispatch' && github.event.inputs.pytorch-channel-version) || 'nightly' }}
publish-to-pypi: ${{ (github.event_name == 'schedule') || (github.event_name == 'workflow_dispatch' && github.event.inputs.publish-to-pypi == 'true') }}
extra-env: >-
{
"DONT_USE_SUDO": 1,
"ENFORCE_CUDA_DEVICE": 0,
"CUDA_VISIBLE_DEVICES": -1,
"ADD_LIBCUDA_SYMLINK": 1
}
container: >-
{
"image": "amazonlinux:2023",
"options": "--user root --privileged --pid=host",
"volumes": [
"/var/run/docker.sock:/var/run/docker.sock"
]
}
secrets:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}