Skip to content

Commit 4605b2c

Browse files
author
jgtong
authored
Merge pull request #88 from rafbiels/voxelizer-host-device
[voxelizer][SYCL] Remove host-device workaround
2 parents 75a7dfd + d417833 commit 4605b2c

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

voxelizer/SYCL/src/infra/device.hpp

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff 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>());

0 commit comments

Comments
 (0)