diff --git a/SYCLStream.cpp b/SYCLStream.cpp index 4b1aa44..d334dd1 100644 --- a/SYCLStream.cpp +++ b/SYCLStream.cpp @@ -49,9 +49,9 @@ SYCLStream::SYCLStream(const unsigned int ARRAY_SIZE, const int device_index) queue = new cl::sycl::queue(dev, [&](cl::sycl::exception_list l) { try { - for(auto e: l) { - std::rethrow_exception(e); - } + for(auto e: l) { + std::rethrow_exception(e); + } } catch (cl::sycl::exception e) { std::cout << e.what(); }