parent
1d6da069b3
commit
0919d95aa4
@ -7,6 +7,7 @@ All notable changes to this project will be documented in this file.
|
||||
- Use cl::sycl::id parameters instead of cl::sycl::item.
|
||||
- Update local copy of OpenCL C++ header file.
|
||||
- Ensure correct SYCL queue constructor with explicit async_handler.
|
||||
- Use built in SYCL runtime device discovery.
|
||||
|
||||
### Removed
|
||||
- Pre-building of kernels in SYCL version to ensure compatibility with SYCL 1.2.1.
|
||||
|
||||
@ -228,15 +228,8 @@ void SYCLStream<T>::read_arrays(std::vector<T>& a, std::vector<T>& b, std::vecto
|
||||
|
||||
void getDeviceList(void)
|
||||
{
|
||||
// Get list of platforms
|
||||
std::vector<platform> platforms = platform::get_platforms();
|
||||
|
||||
// Enumerate devices
|
||||
for (unsigned i = 0; i < platforms.size(); i++)
|
||||
{
|
||||
std::vector<device> plat_devices = platforms[i].get_devices();
|
||||
devices.insert(devices.end(), plat_devices.begin(), plat_devices.end());
|
||||
}
|
||||
// Ask SYCL runtime for all devices in system
|
||||
devices = cl::sycl::device::get_devices();
|
||||
cached = true;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user