Skip to content

Commit 7eb926e

Browse files
authored
Merge Nvidia main to Cutlass SYCL (#493)
Merge latest NV main branch to CUTLASS-SYCL main branch with no cuteDSL
2 parents 79c535e + 4ea09bf commit 7eb926e

File tree

805 files changed

+70383
-9461
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

805 files changed

+70383
-9461
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 0 additions & 23 deletions
This file was deleted.
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Bug Report
2+
description: Create a bug report to help us improve CUTLASS
3+
title: "[BUG] "
4+
labels: ["? - Needs Triage", "bug"]
5+
assignees: []
6+
7+
body:
8+
- type: dropdown
9+
id: component
10+
attributes:
11+
label: Which component has the problem?
12+
options:
13+
- CuTe DSL
14+
- CUTLASS C++
15+
validations:
16+
required: true
17+
- type: textarea
18+
id: bug-report
19+
attributes:
20+
label: Bug Report
21+
description: Please fill out all sections below
22+
value: |
23+
**Describe the bug**
24+
A clear and concise description of what the bug is.
25+
26+
**Steps/Code to reproduce bug**
27+
Follow this guide http://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports to craft a minimal bug report. This helps us reproduce the issue you're having and resolve the issue more quickly.
28+
29+
**Expected behavior**
30+
A clear and concise description of what you expected to happen.
31+
32+
**Environment details (please complete the following information):**
33+
- Environment location: [Bare-metal, Docker, Cloud(specify cloud provider)]
34+
35+
**Additional context**
36+
Add any other context about the problem here.
37+
validations:
38+
required: true

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 0 additions & 20 deletions
This file was deleted.
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Feature Request
2+
description: Suggest an idea for CUTLASS
3+
title: "[FEA] "
4+
labels: ["? - Needs Triage", "feature request"]
5+
assignees: []
6+
7+
body:
8+
- type: dropdown
9+
id: component
10+
attributes:
11+
label: Which component requires the feature?
12+
options:
13+
- CuTe DSL
14+
- CUTLASS C++
15+
validations:
16+
required: true
17+
- type: textarea
18+
id: feature-request
19+
attributes:
20+
label: Feature Request
21+
description: Please fill out all sections below
22+
value: |
23+
**Is your feature request related to a problem? Please describe.**
24+
A clear and concise description of what the problem is. Ex. I wish I could use CUTLASS to do [...]
25+
26+
**Describe the solution you'd like**
27+
A clear and concise description of what you want to happen.
28+
29+
**Describe alternatives you've considered**
30+
A clear and concise description of any alternative solutions or features you've considered.
31+
32+
**Additional context**
33+
Add any other context, code examples, or references to existing implementations about the feature request here.
34+
validations:
35+
required: true
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Auto Label Issues
2+
3+
on:
4+
issues:
5+
types: [opened]
6+
7+
jobs:
8+
add-labels:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
issues: write
12+
steps:
13+
- name: Add component label
14+
uses: actions/github-script@v7
15+
with:
16+
script: |
17+
const issue = context.payload.issue;
18+
const body = issue.body || '';
19+
20+
// Parse the issue body to find the component selection
21+
// GitHub renders dropdown selections as "### {label}\n\n{selection}"
22+
// Check for both bug report and feature request dropdown labels
23+
const bugComponentMatch = body.match(/### Which component has the problem\?\s*\n\s*\n\s*(.+?)(?:\n|$)/);
24+
const featureComponentMatch = body.match(/### Which component requires the feature\?\s*\n\s*\n\s*(.+?)(?:\n|$)/);
25+
26+
const componentMatch = bugComponentMatch || featureComponentMatch;
27+
28+
if (componentMatch) {
29+
const component = componentMatch[1].trim();
30+
let label = '';
31+
32+
// Map component selections to labels
33+
switch(component) {
34+
case 'CuTe DSL':
35+
label = 'CuTe DSL';
36+
break;
37+
case 'CUTLASS C++':
38+
label = 'CUTLASS C++';
39+
break;
40+
}
41+
42+
if (label) {
43+
await github.rest.issues.addLabels({
44+
owner: context.repo.owner,
45+
repo: context.repo.repo,
46+
issue_number: issue.number,
47+
labels: [label]
48+
});
49+
console.log(`Added label: ${label}`);
50+
}
51+
}

.github/workflows/blossom-ci.yml

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
#################################################################################################
2+
#
3+
# Copyright (c) 2023 - 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
4+
# SPDX-License-Identifier: BSD-3-Clause
5+
#
6+
# Redistribution and use in source and binary forms, with or without
7+
# modification, are permitted provided that the following conditions are met:
8+
#
9+
# 1. Redistributions of source code must retain the above copyright notice, this
10+
# list of conditions and the following disclaimer.
11+
#
12+
# 2. Redistributions in binary form must reproduce the above copyright notice,
13+
# this list of conditions and the following disclaimer in the documentation
14+
# and/or other materials provided with the distribution.
15+
#
16+
# 3. Neither the name of the copyright holder nor the names of its
17+
# contributors may be used to endorse or promote products derived from
18+
# this software without specific prior written permission.
19+
#
20+
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21+
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22+
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23+
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24+
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25+
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26+
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27+
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28+
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29+
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30+
#
31+
#################################################################################################
32+
33+
# A workflow to trigger ci on hybrid infra (github + self hosted runner)
34+
name: Blossom-CI
35+
on:
36+
issue_comment:
37+
types: [created]
38+
workflow_dispatch:
39+
inputs:
40+
platform:
41+
description: 'runs-on argument'
42+
required: false
43+
args:
44+
description: 'argument'
45+
required: false
46+
47+
jobs:
48+
Authorization:
49+
name: Authorization
50+
runs-on: blossom
51+
outputs:
52+
args: ${{ env.args }}
53+
54+
# This job only runs for pull request comments
55+
if: |
56+
(startsWith(github.event.comment.body, '/bot run') ||
57+
startsWith(github.event.comment.body, '/bot kill')) && contains(
58+
fromJson('["nv-fastkernels-cicd", "zekunf-nv", "hwu36", "IonThruster", "thakkarV", "d-k-b", "mihir-awatramani", "fengxie", "vickiw973", "Junkai-Wu", "brandon-yujie-sun", "lijingticy22", "hongw-nv", "vikgupta-nv", "IwakuraRein", "depaulmillz", "jackkosaian", "itramble", "ccecka", "sxtyzhangzk", "hbarclay", "yzhaiustc", "x86vk", "sklevtsov-nvidia", "ANIKET-SHIVAM", "Shreya-gaur", "azhurkevich", "serifyesil", "richardmcai", "lsyyy666", "Ethan-Yan27", "XiaoSong9905", "shdetect", "keithzzzzz"]'),
59+
github.actor)
60+
steps:
61+
- name: Check if comment is issued by authorized person
62+
run: blossom-ci
63+
env:
64+
OPERATION: 'AUTH'
65+
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
66+
REPO_KEY_DATA: ${{ secrets.BLOSSOM_KEY }}
67+
68+
Vulnerability-scan:
69+
name: Vulnerability scan
70+
needs: [Authorization]
71+
runs-on: ubuntu-latest
72+
steps:
73+
- name: Checkout code
74+
uses: actions/checkout@v2
75+
with:
76+
repository: ${{ fromJson(needs.Authorization.outputs.args).repo }}
77+
ref: ${{ fromJson(needs.Authorization.outputs.args).ref }}
78+
lfs: 'true'
79+
80+
- name: Run blossom action
81+
uses: NVIDIA/blossom-action@main
82+
env:
83+
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
84+
REPO_KEY_DATA: ${{ secrets.BLOSSOM_KEY }}
85+
with:
86+
args1: ${{ fromJson(needs.Authorization.outputs.args).args1 }}
87+
args2: ${{ fromJson(needs.Authorization.outputs.args).args2 }}
88+
args3: ${{ fromJson(needs.Authorization.outputs.args).args3 }}
89+
90+
Job-trigger:
91+
name: Start ci job
92+
needs: [Vulnerability-scan]
93+
runs-on: blossom
94+
steps:
95+
- name: Start ci job
96+
run: blossom-ci
97+
env:
98+
OPERATION: 'START-CI-JOB'
99+
CI_SERVER: ${{ secrets.CI_SERVER }}
100+
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
101+
102+
Upload-Log:
103+
name: Upload log
104+
runs-on: blossom
105+
if : github.event_name == 'workflow_dispatch'
106+
steps:
107+
- name: Jenkins log for pull request ${{ fromJson(github.event.inputs.args).pr }} (click here)
108+
run: blossom-ci
109+
env:
110+
OPERATION: 'POST-PROCESSING'
111+
CI_SERVER: ${{ secrets.CI_SERVER }}
112+
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)