Skip to content

Commit cee6d75

Browse files
authored
Restoring extra TBB registry key to fix dpcpp failure with caching (#64)
1 parent f41c9db commit cee6d75

File tree

5 files changed

+14
-5
lines changed

5 files changed

+14
-5
lines changed

.azure-pipelines.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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/"

.circleci/config.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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: |

.github/workflows/build_all.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ env:
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

3132
jobs:
@@ -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

.gitlab-ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

scripts/restore_registry.bat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,7 @@ REM
33
REM SPDX-License-Identifier: MIT
44

55
set COMPILER_VERSION=%1
6+
set TBB_VERSION=%2
67

78
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

0 commit comments

Comments
 (0)