File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -42,6 +42,8 @@ variables:
4242 value : 2022.3.0
4343 - name : COMPILER_VERSION
4444 value : 2022.2.1
45+ - name : TBB_VERSION
46+ value : 2021.7.1
4547 - name : VS_VER
4648 value : vs2022
4749
@@ -181,7 +183,7 @@ jobs:
181183 - script : scripts/install_windows.bat $(WINDOWS_BASEKIT_URL) $(WINDOWS_DPCPP_COMPONENTS)
182184 displayName : install
183185 condition : ne(variables.CACHE_RESTORED, 'true')
184- - script : scripts/restore_registry.bat $(COMPILER_VERSION)
186+ - script : scripts/restore_registry.bat $(COMPILER_VERSION) $(TBB_VERSION)
185187 displayName : restory registry on cache hit
186188 condition : eq(variables.CACHE_RESTORED, 'true')
187189 - 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:
4949 COMPILER_VERSION :
5050 type : string
5151 default : " 2022.2.1"
52+ TBB_VERSION :
53+ type : string
54+ default : " 2021.7.1"
5255 VS_VER :
5356 type : string
5457 default : " vs2017"
@@ -140,7 +143,7 @@ jobs:
140143 name : restory registry on cache hit
141144 command : |
142145 [ ! -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 >>
144147 - run :
145148 name : install
146149 command : |
Original file line number Diff line number Diff line change 2626 CACHE_NUMBER : 4
2727 SAMPLES_TAG : 2022.3.0
2828 COMPILER_VERSION : 2022.2.1
29+ TBB_VERSION : 2021.7.1
2930 VS_VER : vs2022
3031
3132jobs :
@@ -125,7 +126,7 @@ jobs:
125126 run : scripts/install_windows.bat $WINDOWS_BASEKIT_URL $WINDOWS_DPCPP_COMPONENTS
126127 - name : restore registry on cache hit
127128 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
129130 - name : build
130131 run : scripts/build_windows.bat dpc++ $VS_VER $SAMPLES_TAG
131132 - name : exclude unused files from cache
Original file line number Diff line number Diff line change @@ -21,7 +21,8 @@ variables:
2121 LINUX_DPCPP_COMPONENTS_WEB : intel.oneapi.lin.dpcpp-cpp-compiler
2222 CACHE_NUMBER : 10
2323 SAMPLES_TAG : 2022.3.0
24- COMPILER_VERSION : " 2022.2"
24+ COMPILER_VERSION : " 2022.2.1"
25+ TBB_VERSION : " 2021.7.1"
2526 VS_VER : 2019_build_tools
2627
2728.shared_windows_runners :
@@ -131,7 +132,7 @@ build_windows_dpcpp:
131132 Move-Item -Path cache\tbb -Destination "C:\Program Files (x86)\Intel\oneAPI"
132133 Move-Item -Path cache\OpenCL.dll -Destination "C:\Windows\System32"
133134 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
135136 } else {
136137 scripts/install_windows.bat $WINDOWS_BASEKIT_URL $WINDOWS_DPCPP_COMPONENTS
137138 }
Original file line number Diff line number Diff line change 33REM SPDX-License-Identifier: MIT
44
55set COMPILER_VERSION = %1
6+ set TBB_VERSION = %2
67
78reg 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