forked from triSYCL/triSYCL
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
platform: move to passing a device selector instead of device_type
This uses a device selector instead of device type to construct the detail platform implementations. However it creates a cyclic depend, so we have to introduce a platform_tail to handle it.
- Loading branch information
Showing
8 changed files
with
33 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#ifndef TRISYCL_SYCL_PLATFORM_TAIL_HPP | ||
#define TRISYCL_SYCL_PLATFORM_TAIL_HPP | ||
|
||
/** \file The ending part of the OpenCL SYCL platform | ||
This is here to break a dependence between platform and device_selector. | ||
This file is distributed under the University of Illinois Open Source | ||
License. See LICENSE.TXT for details. | ||
*/ | ||
|
||
namespace cl { | ||
namespace sycl { | ||
|
||
inline vector_class<device> | ||
platform::get_devices(info::device_type device_type) const { | ||
return implementation->get_devices(device_type_selector { device_type }); | ||
} | ||
|
||
} | ||
} | ||
|
||
#endif |