File tree Expand file tree Collapse file tree 5 files changed +14
-5
lines changed Expand file tree Collapse file tree 5 files changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,8 @@ variables:
42
42
value : 2022.3.0
43
43
- name : COMPILER_VERSION
44
44
value : 2022.2.1
45
+ - name : TBB_VERSION
46
+ value : 2021.7.1
45
47
- name : VS_VER
46
48
value : vs2022
47
49
@@ -181,7 +183,7 @@ jobs:
181
183
- script : scripts/install_windows.bat $(WINDOWS_BASEKIT_URL) $(WINDOWS_DPCPP_COMPONENTS)
182
184
displayName : install
183
185
condition : ne(variables.CACHE_RESTORED, 'true')
184
- - script : scripts/restore_registry.bat $(COMPILER_VERSION)
186
+ - script : scripts/restore_registry.bat $(COMPILER_VERSION) $(TBB_VERSION)
185
187
displayName : restory registry on cache hit
186
188
condition : eq(variables.CACHE_RESTORED, 'true')
187
189
- bash : cp vcvarsall/setvars-vcvarsall.bat "C:/Program Files (x86)/Intel/oneAPI/"
Original file line number Diff line number Diff line change @@ -49,6 +49,9 @@ parameters:
49
49
COMPILER_VERSION :
50
50
type : string
51
51
default : " 2022.2.1"
52
+ TBB_VERSION :
53
+ type : string
54
+ default : " 2021.7.1"
52
55
VS_VER :
53
56
type : string
54
57
default : " vs2017"
@@ -140,7 +143,7 @@ jobs:
140
143
name : restory registry on cache hit
141
144
command : |
142
145
[ ! -d "C:\Program Files (x86)\Intel\oneAPI\compiler" ] && exit 0
143
- scripts/restore_registry.bat << pipeline.parameters.COMPILER_VERSION >>
146
+ scripts/restore_registry.bat << pipeline.parameters.COMPILER_VERSION >> << pipeline.parameters.TBB_VERSION >>
144
147
- run :
145
148
name : install
146
149
command : |
Original file line number Diff line number Diff line change 26
26
CACHE_NUMBER : 4
27
27
SAMPLES_TAG : 2022.3.0
28
28
COMPILER_VERSION : 2022.2.1
29
+ TBB_VERSION : 2021.7.1
29
30
VS_VER : vs2022
30
31
31
32
jobs :
@@ -125,7 +126,7 @@ jobs:
125
126
run : scripts/install_windows.bat $WINDOWS_BASEKIT_URL $WINDOWS_DPCPP_COMPONENTS
126
127
- name : restore registry on cache hit
127
128
if : steps.cache-install.outputs.cache-hit == 'true'
128
- run : scripts/restore_registry.bat $COMPILER_VERSION
129
+ run : scripts/restore_registry.bat $COMPILER_VERSION $TBB_VERSION
129
130
- name : build
130
131
run : scripts/build_windows.bat dpc++ $VS_VER $SAMPLES_TAG
131
132
- name : exclude unused files from cache
Original file line number Diff line number Diff line change @@ -21,7 +21,8 @@ variables:
21
21
LINUX_DPCPP_COMPONENTS_WEB : intel.oneapi.lin.dpcpp-cpp-compiler
22
22
CACHE_NUMBER : 10
23
23
SAMPLES_TAG : 2022.3.0
24
- COMPILER_VERSION : " 2022.2"
24
+ COMPILER_VERSION : " 2022.2.1"
25
+ TBB_VERSION : " 2021.7.1"
25
26
VS_VER : 2019_build_tools
26
27
27
28
.shared_windows_runners :
@@ -131,7 +132,7 @@ build_windows_dpcpp:
131
132
Move-Item -Path cache\tbb -Destination "C:\Program Files (x86)\Intel\oneAPI"
132
133
Move-Item -Path cache\OpenCL.dll -Destination "C:\Windows\System32"
133
134
Move-Item -Path cache\setvars-vcvarsall.bat -Destination "C:\Program Files (x86)\Intel\oneAPI\setvars-vcvarsall.bat"
134
- scripts/restore_registry.bat $COMPILER_VERSION
135
+ scripts/restore_registry.bat $COMPILER_VERSION $TBB_VERSION
135
136
} else {
136
137
scripts/install_windows.bat $WINDOWS_BASEKIT_URL $WINDOWS_DPCPP_COMPONENTS
137
138
}
Original file line number Diff line number Diff line change 3
3
REM SPDX-License-Identifier: MIT
4
4
5
5
set COMPILER_VERSION = %1
6
+ set TBB_VERSION = %2
6
7
7
8
reg add HKLM\Software\Khronos\OpenCL\Vendors /v " C:\Program Files (x86)\Intel\oneAPI\compiler\%COMPILER_VERSION% \windows\lib\x64\intelocl64.dll" /t REG_DWORD /d 0 /f
9
+ reg add HKLM\Software\Intel\oneAPI\TBB\%TBB_VERSION% /v TBB_DLL_PATH /t REG_SZ /d " C:\Program Files (x86)\Intel\oneAPI\tbb\%TBB_VERSION% \redist\intel64\vc14" /f
You can’t perform that action at this time.
0 commit comments