Skip to content

Commit

Permalink
Consistent parameter name for device type
Browse files Browse the repository at this point in the history
Use the same formal parameter name `type` for all the `get_devices`
member functions.
  • Loading branch information
gmlueck committed Jun 25, 2024
1 parent 89cd50c commit 576f274
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions adoc/chapters/programming_interface.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1719,12 +1719,12 @@ a@
[source]
----
static std::vector<device>
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
<<root-device, root devices>> from all <<backend, SYCL backends>>
available in the system which have the device type encapsulated by
[code]#deviceType#.
[code]#type#.

|====

Expand Down
2 changes: 1 addition & 1 deletion adoc/headers/device.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@ class device {
create_sub_devices(info::partition_affinity_domain affinityDomain) const;

static std::vector<device>
get_devices(info::device_type deviceType = info::device_type::all);
get_devices(info::device_type type = info::device_type::all);
};
} // namespace sycl
2 changes: 1 addition & 1 deletion adoc/headers/platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class platform {
backend get_backend() const noexcept;

std::vector<device>
get_devices(info::device_type = info::device_type::all) const;
get_devices(info::device_type type = info::device_type::all) const;

template <typename Param> typename Param::return_type get_info() const;

Expand Down

0 comments on commit 576f274

Please sign in to comment.