File tree Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Original file line number Diff line number Diff line change @@ -214,20 +214,8 @@ namespace infra
214
214
prop.set_host_unified_memory (
215
215
get_info<sycl::info::device::host_unified_memory>());
216
216
217
- // max_clock_frequency parameter is not supported on host device
218
- if (is_host ())
219
- {
220
- // This code may need to be updated. Currently max_clock_frequency for
221
- // host device is initialized with 1, in assumption that if other devices
222
- // exist and they are being selected based on this parameter, other
223
- // devices would have higher priority.
224
- prop.set_max_clock_frequency (1 );
225
- }
226
- else
227
- {
228
- prop.set_max_clock_frequency (
229
- get_info<sycl::info::device::max_clock_frequency>());
230
- }
217
+ prop.set_max_clock_frequency (
218
+ get_info<sycl::info::device::max_clock_frequency>() * 1000 );
231
219
232
220
prop.set_max_compute_units (
233
221
get_info<sycl::info::device::max_compute_units>());
You can’t perform that action at this time.
0 commit comments