From 6f51b26ac865b7a3200b9618cccc4f58025c5c48 Mon Sep 17 00:00:00 2001
From: JordanHanotiaux <103147288+JordanHanotiaux@users.noreply.github.com>
Date: Mon, 19 May 2025 11:03:12 +0200
Subject: [PATCH] Update main.cpp

---
 main.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/main.cpp b/main.cpp
index dfc6705..9d2720f 100644
--- a/main.cpp
+++ b/main.cpp
@@ -107,7 +107,7 @@ int main(int argc, char** argv) {
 
     cl::Context context(device);
     cl_int err;
-    cl_command_queue cq = clCreateCommandQueue(context, device, CL_QUEUE_PROFILING_ENABLE, &err);
+    cl_command_queue cq = clCreateCommandQueue(context(), device, CL_QUEUE_PROFILING_ENABLE, &err);
     if (err != CL_SUCCESS) {
         std::cerr << "Failed to create command queue: " << err << std::endl;
         exit(1);
-- 
GitLab