@@ -7,15 +7,15 @@ trigger:
7
7
8
8
variables :
9
9
- name : WINDOWS_BASEKIT_URL
10
- value : https://registrationcenter-download.intel.com/akdlm/IRC_NAS/18674 /w_BaseKit_p_2022.2 .0.252_offline .exe
10
+ value : https://registrationcenter-download.intel.com/akdlm/irc_nas/18851 /w_BaseKit_p_2022.3 .0.9573_offline .exe
11
11
- name : WINDOWS_HPCKIT_URL
12
- value : https://registrationcenter-download.intel.com/akdlm/IRC_NAS/18680 /w_HPCKit_p_2022.2 .0.173_offline .exe
12
+ value : https://registrationcenter-download.intel.com/akdlm/irc_nas/18857 /w_HPCKit_p_2022.3 .0.9564_offline .exe
13
13
- name : LINUX_BASEKIT_URL
14
- value : https://registrationcenter-download.intel.com/akdlm/irc_nas/18673 /l_BaseKit_p_2022.2 .0.262_offline .sh
14
+ value : https://registrationcenter-download.intel.com/akdlm/irc_nas/18852 /l_BaseKit_p_2022.3 .0.8767_offline .sh
15
15
- name : LINUX_HPCKIT_URL
16
- value : https://registrationcenter-download.intel.com/akdlm/irc_nas/18679 /l_HPCKit_p_2022.2 .0.191_offline .sh
16
+ value : https://registrationcenter-download.intel.com/akdlm/irc_nas/18856 /l_HPCKit_p_2022.3 .0.8751_offline .sh
17
17
- name : MACOS_HPCKIT_URL
18
- value : https://registrationcenter-download.intel.com/akdlm/IRC_NAS/18681 /m_HPCKit_p_2022.2 .0.158_offline .dmg
18
+ value : https://registrationcenter-download.intel.com/akdlm/irc_nas/18866 /m_HPCKit_p_2022.3 .0.8685_offline .dmg
19
19
- name : WINDOWS_CPP_COMPONENTS
20
20
value : intel.oneapi.win.cpp-compiler
21
21
- name : WINDOWS_FORTRAN_COMPONENTS
@@ -39,11 +39,11 @@ variables:
39
39
- name : MACOS_FORTRAN_COMPONENTS
40
40
value : intel.oneapi.mac.ifort-compiler
41
41
- name : SAMPLES_TAG
42
- value : 2022.2 .0
42
+ value : 2022.3 .0
43
43
- name : COMPILER_VERSION
44
- value : 2022.1.0
44
+ value : 2022.2
45
45
- name : VS_VER
46
- value : vs2019
46
+ value : vs2022
47
47
48
48
resources :
49
49
containers :
@@ -57,30 +57,170 @@ resources:
57
57
jobs :
58
58
- job : build_windows_cpp
59
59
pool :
60
- vmImage : ' windows-2019 '
60
+ vmImage : ' windows-latest '
61
61
steps :
62
+ - task : Cache@2 # multiple paths per cache not supported yet. See https://github.com/microsoft/azure-pipelines-agent/pull/2834
63
+ inputs :
64
+ path : vcvarsall
65
+ key : ' "install" | "$(WINDOWS_HPCKIT_URL)" | "$(WINDOWS_CPP_COMPONENTS)" | "vcvarsall" | scripts/cache_exclude_windows.sh'
66
+ cacheHitVar : CACHE_RESTORED
67
+ - task : Cache@2
68
+ condition : eq(variables.CACHE_RESTORED, 'true')
69
+ inputs :
70
+ path : C:\Program Files (x86)\Intel\oneAPI\compiler
71
+ key : ' "install" | "$(WINDOWS_HPCKIT_URL)" | "$(WINDOWS_CPP_COMPONENTS)" | "compiler" | scripts/cache_exclude_windows.sh'
72
+ cacheHitVar : CACHE_RESTORED
62
73
- script : scripts/install_windows.bat $(WINDOWS_HPCKIT_URL) $(WINDOWS_CPP_COMPONENTS)
63
74
displayName : install
64
- - script : scripts/build_windows.bat c++ ${VS_VER} $(SAMPLES_TAG)
75
+ condition : ne(variables.CACHE_RESTORED, 'true')
76
+ - bash : cp vcvarsall/setvars-vcvarsall.bat "C:/Program Files (x86)/Intel/oneAPI/"
77
+ displayName : restore setvars-vcvarsall.bat from cache
78
+ condition : eq(variables.CACHE_RESTORED, 'true')
79
+ - script : scripts/build_windows.bat c++ $(VS_VER) $(SAMPLES_TAG)
65
80
displayName : build
81
+ - bash : scripts/cache_exclude_windows.sh
82
+ displayName : exclude unused files from cache
83
+ condition : ne(variables.CACHE_RESTORED, 'true')
84
+ - bash : |
85
+ mkdir -p vcvarsall
86
+ cp "C:/Program Files (x86)/Intel/oneAPI/setvars-vcvarsall.bat" vcvarsall/
87
+ displayName: copy setvars-vcvarsall.bat to a folder for caching
88
+ condition: ne(variables.CACHE_RESTORED, 'true')
89
+
90
+ # Delete the following if you don't want to save install logs
91
+ - task : CopyFiles@2
92
+ condition : ne(variables.CACHE_RESTORED, 'true')
93
+ inputs :
94
+ sourceFolder : ' $(Build.SourcesDirectory)'
95
+ contents : |
96
+ extract.log
97
+ bootstrapper*
98
+ installer*
99
+ targetFolder : ' $(Build.ArtifactStagingDirectory)'
100
+ - task : PublishBuildArtifacts@1
101
+ condition : ne(variables.CACHE_RESTORED, 'true')
102
+ inputs :
103
+ pathToPublish : ' $(Build.ArtifactStagingDirectory)'
104
+ artifactName : InstallLogs_$(Agent.JobName)
66
105
67
106
- job : build_windows_fortran
68
107
pool :
69
- vmImage : ' windows-2019 '
108
+ vmImage : ' windows-latest '
70
109
steps :
110
+ - task : Cache@2 # multiple paths per cache not supported yet. See https://github.com/microsoft/azure-pipelines-agent/pull/2834
111
+ inputs :
112
+ path : vcvarsall
113
+ key : ' "install" | "$(WINDOWS_HPCKIT_URL)" | "$(WINDOWS_FORTRAN_COMPONENTS)" | "vcvarsall" | scripts/cache_exclude_windows.sh'
114
+ cacheHitVar : CACHE_RESTORED
115
+ - task : Cache@2
116
+ condition : eq(variables.CACHE_RESTORED, 'true')
117
+ inputs :
118
+ path : C:\Program Files (x86)\Intel\oneAPI\compiler
119
+ key : ' "install" | "$(WINDOWS_HPCKIT_URL)" | "$(WINDOWS_FORTRAN_COMPONENTS)" | "compiler" | scripts/cache_exclude_windows.sh'
120
+ cacheHitVar : CACHE_RESTORED
71
121
- script : scripts/install_windows.bat $(WINDOWS_HPCKIT_URL) $(WINDOWS_FORTRAN_COMPONENTS)
72
122
displayName : install
73
- - script : scripts/build_windows.bat fortran ${VS_VER} $(SAMPLES_TAG)
123
+ condition : ne(variables.CACHE_RESTORED, 'true')
124
+ - bash : cp vcvarsall/setvars-vcvarsall.bat "C:/Program Files (x86)/Intel/oneAPI/"
125
+ displayName : restore setvars-vcvarsall.bat from cache
126
+ condition : eq(variables.CACHE_RESTORED, 'true')
127
+ - script : scripts/build_windows.bat fortran $(VS_VER) $(SAMPLES_TAG)
74
128
displayName : build
129
+ - bash : scripts/cache_exclude_windows.sh
130
+ displayName : exclude unused files from cache
131
+ condition : ne(variables.CACHE_RESTORED, 'true')
132
+ - bash : |
133
+ mkdir -p vcvarsall
134
+ cp "C:/Program Files (x86)/Intel/oneAPI/setvars-vcvarsall.bat" vcvarsall/
135
+ displayName: copy setvars-vcvarsall.bat to a folder for caching
136
+ condition: ne(variables.CACHE_RESTORED, 'true')
137
+
138
+ # Delete the following if you don't want to save install logs
139
+ - task : CopyFiles@2
140
+ condition : ne(variables.CACHE_RESTORED, 'true')
141
+ inputs :
142
+ sourceFolder : ' $(Build.SourcesDirectory)'
143
+ contents : |
144
+ extract.log
145
+ bootstrapper*
146
+ installer*
147
+ targetFolder : ' $(Build.ArtifactStagingDirectory)'
148
+ - task : PublishBuildArtifacts@1
149
+ condition : ne(variables.CACHE_RESTORED, 'true')
150
+ inputs :
151
+ pathToPublish : ' $(Build.ArtifactStagingDirectory)'
152
+ artifactName : InstallLogs_$(Agent.JobName)
75
153
76
154
- job : build_windows_dpcpp
77
155
pool :
78
- vmImage : ' windows-2019 '
156
+ vmImage : ' windows-latest '
79
157
steps :
158
+ - task : Cache@2 # multiple paths per cache not supported yet. See https://github.com/microsoft/azure-pipelines-agent/pull/2834
159
+ inputs :
160
+ path : vcvarsall
161
+ key : ' "install" | "$(WINDOWS_BASEKIT_URL)" | "$(WINDOWS_DPCPP_COMPONENTS)" | "vcvarsall" | scripts/cache_exclude_windows.sh'
162
+ cacheHitVar : CACHE_RESTORED
163
+ - task : Cache@2
164
+ condition : eq(variables.CACHE_RESTORED, 'true')
165
+ inputs :
166
+ path : C:\Program Files (x86)\Intel\oneAPI\compiler
167
+ key : ' "install" | "$(WINDOWS_BASEKIT_URL)" | "$(WINDOWS_DPCPP_COMPONENTS)" | "compiler" | scripts/cache_exclude_windows.sh'
168
+ cacheHitVar : CACHE_RESTORED
169
+ - task : Cache@2
170
+ condition : eq(variables.CACHE_RESTORED, 'true')
171
+ inputs :
172
+ path : C:\Program Files (x86)\Intel\oneAPI\tbb
173
+ key : ' "install" | "$(WINDOWS_BASEKIT_URL)" | "$(WINDOWS_DPCPP_COMPONENTS)" | "tbb" | scripts/cache_exclude_windows.sh'
174
+ cacheHitVar : CACHE_RESTORED
175
+ - task : Cache@2
176
+ condition : eq(variables.CACHE_RESTORED, 'true')
177
+ inputs :
178
+ path : opencl # caching of individual files is not supported, caching OpenCL.dll in a folder as a workaround.
179
+ key : ' "install" | "$(WINDOWS_BASEKIT_URL)" | "$(WINDOWS_DPCPP_COMPONENTS)" | "opencl_folder" | scripts/cache_exclude_windows.sh'
180
+ cacheHitVar : CACHE_RESTORED
80
181
- script : scripts/install_windows.bat $(WINDOWS_BASEKIT_URL) $(WINDOWS_DPCPP_COMPONENTS)
81
182
displayName : install
82
- - script : scripts/build_windows.bat dpc++ ${VS_VER} $(SAMPLES_TAG)
183
+ condition : ne(variables.CACHE_RESTORED, 'true')
184
+ - script : scripts/restore_registry.bat $(COMPILER_VERSION)
185
+ displayName : restory registry on cache hit
186
+ condition : eq(variables.CACHE_RESTORED, 'true')
187
+ - bash : cp vcvarsall/setvars-vcvarsall.bat "C:/Program Files (x86)/Intel/oneAPI/"
188
+ displayName : restore setvars-vcvarsall.bat from cache
189
+ condition : eq(variables.CACHE_RESTORED, 'true')
190
+ - bash : cp opencl/OpenCL.dll C:/Windows/System32/
191
+ displayName : restore OpenCL.dll from cache
192
+ condition : eq(variables.CACHE_RESTORED, 'true')
193
+ - script : scripts/build_windows.bat dpc++ $(VS_VER) $(SAMPLES_TAG)
83
194
displayName : build
195
+ - bash : scripts/cache_exclude_windows.sh
196
+ displayName : exclude unused files from cache
197
+ condition : ne(variables.CACHE_RESTORED, 'true')
198
+ - bash : |
199
+ mkdir -p vcvarsall
200
+ cp "C:/Program Files (x86)/Intel/oneAPI/setvars-vcvarsall.bat" vcvarsall/
201
+ displayName: copy setvars-vcvarsall.bat to a folder for caching
202
+ condition: ne(variables.CACHE_RESTORED, 'true')
203
+ - bash : |
204
+ mkdir -p opencl
205
+ cp C:/Windows/System32/OpenCL.dll opencl/
206
+ displayName: copy OpenCL.dll to a folder for caching
207
+ condition: ne(variables.CACHE_RESTORED, 'true')
208
+
209
+ # Delete the following if you don't want to save install logs
210
+ - task : CopyFiles@2
211
+ condition : ne(variables.CACHE_RESTORED, 'true')
212
+ inputs :
213
+ sourceFolder : ' $(Build.SourcesDirectory)'
214
+ contents : |
215
+ extract.log
216
+ bootstrapper*
217
+ installer*
218
+ targetFolder : ' $(Build.ArtifactStagingDirectory)'
219
+ - task : PublishBuildArtifacts@1
220
+ condition : ne(variables.CACHE_RESTORED, 'true')
221
+ inputs :
222
+ pathToPublish : ' $(Build.ArtifactStagingDirectory)'
223
+ artifactName : InstallLogs_$(Agent.JobName)
84
224
85
225
- job : build_linux_cpp
86
226
pool :
0 commit comments