From 1336400311a7633080d3973c79151686c614937a Mon Sep 17 00:00:00 2001 From: Tom Deakin Date: Mon, 8 Feb 2021 11:34:37 +0000 Subject: [PATCH] [SYCL 2020] Use unique pointer for queue constructor --- SYCLStream.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SYCLStream.cpp b/SYCLStream.cpp index 0f65560..7765352 100644 --- a/SYCLStream.cpp +++ b/SYCLStream.cpp @@ -31,7 +31,7 @@ SYCLStream::SYCLStream(const int ARRAY_SIZE, const int device_index) std::cout << "Using SYCL device " << getDeviceName(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(dev, sycl::async_handler{[&](sycl::exception_list l) { bool error = false; for(auto e: l)