[SYCL 2020] Use unique pointer for queue constructor
This commit is contained in:
parent
1db9a6b648
commit
1336400311
@ -31,7 +31,7 @@ SYCLStream<T>::SYCLStream(const int ARRAY_SIZE, const int device_index)
|
|||||||
std::cout << "Using SYCL device " << getDeviceName(device_index) << std::endl;
|
std::cout << "Using SYCL device " << getDeviceName(device_index) << std::endl;
|
||||||
std::cout << "Driver: " << getDeviceDriver(device_index) << std::endl;
|
std::cout << "Driver: " << getDeviceDriver(device_index) << std::endl;
|
||||||
|
|
||||||
queue = new sycl::queue(dev, sycl::async_handler{[&](sycl::exception_list l)
|
queue = std::make_unique<sycl::queue>(dev, sycl::async_handler{[&](sycl::exception_list l)
|
||||||
{
|
{
|
||||||
bool error = false;
|
bool error = false;
|
||||||
for(auto e: l)
|
for(auto e: l)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user