Skip to content

Commit c89df93

Browse files
committed
Commit oneTBB source code 8152ba4
1 parent 1c4c93f commit c89df93

File tree

119 files changed

+5420
-888
lines changed

Some content is hidden

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

119 files changed

+5420
-888
lines changed

.bazelversion

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.1.1
1+
7.2.1

.github/ISSUE_TEMPLATE/1_question.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
name: Ask a question
3+
about: Use this template for any questions
4+
title: ''
5+
labels: 'question'
6+
assignees: ''
7+
---
+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
name: Report a bug or a performance issue
3+
about: Use this template to report unexpected behavior
4+
title: ''
5+
labels: 'bug'
6+
assignees: ''
7+
---
8+
9+
# Summary
10+
Provide a short summary of the issue.
11+
See the sections below
12+
for factors important for the reproduction of an issue.
13+
14+
# Version
15+
Report oneTBB version used to reproduce the problem.
16+
17+
# Environment
18+
Provide any environmental details that you consider significant for reproducing the issue.
19+
The following information is important:
20+
* Hardware
21+
* OS name and version
22+
* Compiler version
23+
24+
# Observed Behavior
25+
Document behavior you observe.
26+
27+
# Expected Behavior
28+
Document behavior you expect.
29+
30+
# Steps To Reproduce
31+
Check that the issue is reproducible with the latest revision
32+
of the master branch. Include all the steps to reproduce the issue.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: Request a feature
3+
about: Use this template to request new functionality or change the behavior of the library
4+
title: ''
5+
labels: 'new feature'
6+
assignees: ''
7+
---
8+
9+
# Summary
10+
Include a short summary of the request.
11+
12+
See the sections below
13+
for factors important for a feature request.
14+
15+
# Problem Statement
16+
Describe the problem you want to solve with a reasonable level of detail.
17+
18+
# Preferred Solution
19+
Provide your ideas regarding problem solutions.
+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Request a documentation change
3+
about: Use this template to report documentation issue or request documentation changes
4+
title: ''
5+
labels: 'documentation'
6+
assignees: ''
7+
---
8+
9+
# Summary
10+
Include a short summary of the issue or request.
11+
See the sections below
12+
for factors important for a documentation
13+
issue.
14+
15+
# URLs
16+
Include pointers to documents that are impacted.
17+
18+
# Additional Details
19+
Provide a detailed description of the expected changes in documentation
20+
and suggestions you have.

.github/pull_request_template.md

-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ _Add a comprehensive description of proposed changes_
44

55
Fixes # - _issue number(s) if exists_
66

7-
- [ ] - git commit message contains an appropriate signed-off-by string _(see [CONTRIBUTING.md](https://github.com/oneapi-src/oneTBB/blob/master/CONTRIBUTING.md#pull-requests) for details)_
8-
97
### Type of change
108

119
_Choose one or multiple, leave empty if none of the other choices apply_

.github/workflows/ci.yml

+12-12
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
runs-on: [ubuntu-20.04]
3838
timeout-minutes: 10
3939
steps:
40-
- uses: actions/checkout@v2
40+
- uses: actions/checkout@v4
4141
- name: Run scan
4242
run: |
4343
sudo apt update && sudo apt install -y codespell
@@ -47,7 +47,7 @@ jobs:
4747
runs-on: [ubuntu-20.04]
4848
timeout-minutes: 10
4949
steps:
50-
- uses: actions/checkout@v2
50+
- uses: actions/checkout@v4
5151
- name: Run scan
5252
run: |
5353
command -v clang-format-10
@@ -62,7 +62,7 @@ jobs:
6262
runs-on: [ubuntu-22.04]
6363
timeout-minutes: 10
6464
steps:
65-
- uses: actions/checkout@v2
65+
- uses: actions/checkout@v4
6666
- name: Install prerequisites
6767
run: |
6868
pip3 install -U Jinja2
@@ -90,7 +90,7 @@ jobs:
9090
needs: [documentation]
9191
steps:
9292
- name: Checkout gh-pages
93-
uses: actions/checkout@v2
93+
uses: actions/checkout@v4
9494
with:
9595
ref: gh-pages
9696
path: gh-pages
@@ -117,7 +117,7 @@ jobs:
117117
if: ${{ github.ref != 'refs/heads/master' }}
118118
runs-on: [ubuntu-20.04]
119119
steps:
120-
- uses: actions/checkout@v2
120+
- uses: actions/checkout@v4
121121
with:
122122
fetch-depth: 0
123123
- name: Run check
@@ -137,7 +137,7 @@ jobs:
137137
runs-on: [ubuntu-latest]
138138
timeout-minutes: 15
139139
steps:
140-
- uses: actions/checkout@v2
140+
- uses: actions/checkout@v4
141141
- name: Run testing
142142
run: |
143143
mkdir build && cd build
@@ -179,7 +179,7 @@ jobs:
179179
preview: 'ON'
180180
cmake_static: -DBUILD_SHARED_LIBS=OFF
181181
steps:
182-
- uses: actions/checkout@v2
182+
- uses: actions/checkout@v4
183183
- name: Run testing
184184
shell: bash
185185
run: |
@@ -212,7 +212,7 @@ jobs:
212212
preview: 'ON'
213213
cmake_static: -DBUILD_SHARED_LIBS=OFF
214214
steps:
215-
- uses: actions/checkout@v2
215+
- uses: actions/checkout@v4
216216
- name: Run testing
217217
shell: bash
218218
run: |
@@ -257,7 +257,7 @@ jobs:
257257
preview: 'OFF'
258258
job_name: windows_cl2022_cxx17_relwithdebinfo_preview=OFF
259259
steps:
260-
- uses: actions/checkout@v2
260+
- uses: actions/checkout@v4
261261
- name: Run testing
262262
run: |
263263
mkdir build
@@ -295,7 +295,7 @@ jobs:
295295
build_type: debug
296296
preview: 'ON'
297297
steps:
298-
- uses: actions/checkout@v2
298+
- uses: actions/checkout@v4
299299
- name: Run testing
300300
shell: bash
301301
run: |
@@ -321,7 +321,7 @@ jobs:
321321
build_type: relwithdebinfo
322322
preview: 'ON'
323323
steps:
324-
- uses: actions/checkout@v2
324+
- uses: actions/checkout@v4
325325
- name: Run testing
326326
shell: bash
327327
run: |
@@ -357,7 +357,7 @@ jobs:
357357
preview: 'OFF'
358358
job_name: examples_windows_cl2022_cxx17_relwithdebinfo_preview=OFF
359359
steps:
360-
- uses: actions/checkout@v2
360+
- uses: actions/checkout@v4
361361
- name: Run testing
362362
run: |
363363
mkdir build

.github/workflows/codeql.yml

+86
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
# Copyright (c) 2024 Intel Corporation
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
name: "CodeQL"
16+
17+
on:
18+
push:
19+
branches: [ "master" ]
20+
pull_request:
21+
branches: [ "master" ]
22+
schedule:
23+
- cron: '0 0 * * 1'
24+
25+
permissions:
26+
contents: read
27+
28+
jobs:
29+
analyze:
30+
name: Analyze (${{ matrix.language }})
31+
runs-on: ubuntu-latest
32+
# timeout-minutes:
33+
permissions:
34+
# required for all workflows
35+
security-events: write
36+
# required to fetch internal or private CodeQL packs
37+
packages: read
38+
# only required for workflows in private repositories
39+
actions: read
40+
contents: read
41+
42+
strategy:
43+
fail-fast: false
44+
matrix:
45+
language: ["cpp", "python"]
46+
47+
steps:
48+
- name: Harden Runner
49+
uses: step-security/[email protected]
50+
with:
51+
egress-policy: audit
52+
53+
- name: Checkout repository
54+
uses: actions/checkout@v4
55+
56+
# Initializes the CodeQL tools for scanning.
57+
- name: Initialize CodeQL
58+
uses: github/codeql-action/init@v3
59+
with:
60+
languages: ${{ matrix.language }}
61+
62+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
63+
# If this step fails, then you should remove it and run the build manually (see below)
64+
- name: Autobuild
65+
uses: github/codeql-action/[email protected]
66+
67+
# If the analyze step fails for one of the languages you are analyzing with
68+
# "We were unable to automatically build your code", modify the matrix above
69+
# to set the build mode to "manual" for that language. Then modify this step
70+
# to build your code.
71+
# Command-line programs to run using the OS shell.
72+
# See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
73+
#- if: matrix.build-mode == 'manual'
74+
# shell: bash
75+
# run: |
76+
# echo 'If you are using a "manual" build mode for one or more of the' \
77+
# 'languages you are analyzing, replace this with the commands to build' \
78+
# 'your code, for example:'
79+
# echo ' make bootstrap'
80+
# echo ' make release'
81+
# exit 1
82+
83+
- name: Perform CodeQL Analysis
84+
uses: github/codeql-action/analyze@v3
85+
with:
86+
category: "/language:${{matrix.language}}"

.github/workflows/ossf-scorecard.yml

+83
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
# Copyright (c) 2024 Intel Corporation
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
name: OSSF Scorecard
16+
on:
17+
# For Branch-Protection check. Only the default branch is supported. See
18+
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection
19+
branch_protection_rule:
20+
# To guarantee Maintained check is occasionally updated. See
21+
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
22+
schedule:
23+
- cron: '00 02 * * *'
24+
push:
25+
branches: [ "master" ]
26+
27+
# Declare default permissions as read only.
28+
permissions: read-all
29+
30+
jobs:
31+
analysis:
32+
name: Scorecard analysis
33+
runs-on: ubuntu-latest
34+
permissions:
35+
# Needed to upload the results to code-scanning dashboard.
36+
security-events: write
37+
# Needed to publish results and get a badge (see publish_results below).
38+
id-token: write
39+
# Uncomment the permissions below if installing in a private repository.
40+
# contents: read
41+
# actions: read
42+
43+
steps:
44+
- name: "Checkout code"
45+
uses: actions/[email protected]
46+
with:
47+
persist-credentials: false
48+
49+
- name: "Run analysis"
50+
uses: ossf/[email protected]
51+
with:
52+
results_file: results.sarif
53+
results_format: sarif
54+
# (Optional) "write" PAT token. Uncomment the `repo_token` line below if:
55+
# - you want to enable the Branch-Protection check on a *public* repository, or
56+
# - you are installing Scorecard on a *private* repository
57+
# To create the PAT, follow the steps in https://github.com/ossf/scorecard-action?tab=readme-ov-file#authentication-with-fine-grained-pat-optional.
58+
# repo_token: ${{ secrets.SCORECARD_TOKEN }}
59+
60+
# Public repositories:
61+
# - Publish results to OpenSSF REST API for easy access by consumers
62+
# - Allows the repository to include the Scorecard badge.
63+
# - See https://github.com/ossf/scorecard-action#publishing-results.
64+
# For private repositories:
65+
# - `publish_results` will always be set to `false`, regardless
66+
# of the value entered here.
67+
publish_results: true
68+
69+
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
70+
# format to the repository Actions tab.
71+
#- name: "Upload artifact"
72+
# uses: actions/upload-artifact@97a0fba1372883ab732affbe8f94b823f91727db # v3.pre.node20
73+
# with:
74+
# name: SARIF file
75+
# path: results.sarif
76+
# retention-days: 5
77+
78+
# Upload the results to GitHub's code scanning dashboard (optional).
79+
# Commenting out will disable upload of results to your repo's Code Scanning dashboard
80+
#- name: "Upload to code-scanning"
81+
# uses: github/codeql-action/upload-sarif@1b1aada464948af03b950897e5eb522f92603cc2 # v3.24.9
82+
# with:
83+
# sarif_file: results.sarif

0 commit comments

Comments
 (0)