From 576f2741a0568b45b0543d24125e99e7dd1ec8a0 Mon Sep 17 00:00:00 2001 From: Greg Lueck Date: Tue, 25 Jun 2024 17:44:19 -0400 Subject: [PATCH] Consistent parameter name for device type Use the same formal parameter name `type` for all the `get_devices` member functions. --- adoc/chapters/programming_interface.adoc | 4 ++-- adoc/headers/device.h | 2 +- adoc/headers/platform.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/adoc/chapters/programming_interface.adoc b/adoc/chapters/programming_interface.adoc index cdc35548..a7075ece 100644 --- a/adoc/chapters/programming_interface.adoc +++ b/adoc/chapters/programming_interface.adoc @@ -1719,12 +1719,12 @@ a@ [source] ---- static std::vector -get_devices(info::device_type deviceType = info::device_type::all) +get_devices(info::device_type type = info::device_type::all) ---- a@ Returns a [code]#std::vector# containing all the <> from all <> available in the system which have the device type encapsulated by - [code]#deviceType#. + [code]#type#. |==== diff --git a/adoc/headers/device.h b/adoc/headers/device.h index 7d23ffd2..bfc66ce9 100644 --- a/adoc/headers/device.h +++ b/adoc/headers/device.h @@ -47,6 +47,6 @@ class device { create_sub_devices(info::partition_affinity_domain affinityDomain) const; static std::vector - get_devices(info::device_type deviceType = info::device_type::all); + get_devices(info::device_type type = info::device_type::all); }; } // namespace sycl diff --git a/adoc/headers/platform.h b/adoc/headers/platform.h index f28f1445..64609d35 100644 --- a/adoc/headers/platform.h +++ b/adoc/headers/platform.h @@ -14,7 +14,7 @@ class platform { backend get_backend() const noexcept; std::vector - get_devices(info::device_type = info::device_type::all) const; + get_devices(info::device_type type = info::device_type::all) const; template typename Param::return_type get_info() const;