Skip to content

Commit b43adb4

Browse files
committed
Add host timer res query to platform
1 parent 725a8fa commit b43adb4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

include/boost/compute/platform.hpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,12 @@ BOOST_COMPUTE_DETAIL_DEFINE_GET_INFO_SPECIALIZATIONS(platform,
241241
((std::string, CL_PLATFORM_EXTENSIONS))
242242
)
243243

244+
#ifdef BOOST_COMPUTE_CL_VERSION_2_1
245+
BOOST_COMPUTE_DETAIL_DEFINE_GET_INFO_SPECIALIZATIONS(platform,
246+
((cl_ulong, CL_PLATFORM_HOST_TIMER_RESOLUTION))
247+
)
248+
#endif // BOOST_COMPUTE_CL_VERSION_2_1
249+
244250
inline boost::compute::platform device::platform() const
245251
{
246252
return boost::compute::platform(get_info<CL_DEVICE_PLATFORM>());

0 commit comments

Comments
 (0)