diff --git a/SYCLStream.cpp b/SYCLStream.cpp index 8e33588..e8159b2 100644 --- a/SYCLStream.cpp +++ b/SYCLStream.cpp @@ -15,7 +15,6 @@ using namespace cl::sycl; bool cached = false; std::vector devices; void getDeviceList(void); -program * p; template SYCLStream::SYCLStream(const unsigned int ARRAY_SIZE, const int device_index) @@ -65,7 +64,7 @@ SYCLStream::SYCLStream(const unsigned int ARRAY_SIZE, const int device_index) { throw std::runtime_error("SYCL errors detected"); } - }); + }, {}); // Create buffers d_a = new buffer(array_size); @@ -81,7 +80,6 @@ SYCLStream::~SYCLStream() delete d_b; delete d_c; delete d_sum; - delete p; delete queue; devices.clear(); }