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
214214 prop.set_host_unified_memory (
215215 get_info<sycl::info::device::host_unified_memory>());
216216
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 );
231219
232220 prop.set_max_compute_units (
233221 get_info<sycl::info::device::max_compute_units>());
You can’t perform that action at this time.
0 commit comments