From c892d3a603352cbcec2c0cdb360962c299bbdd19 Mon Sep 17 00:00:00 2001 From: miha-q <> Date: Thu, 7 Mar 2024 20:28:25 -0500 Subject: [PATCH] Thu Mar 7 08:28:25 PM EST 2024 --- src/complex.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/complex.c b/src/complex.c index c83e8a6..722eef4 100644 --- a/src/complex.c +++ b/src/complex.c @@ -589,10 +589,12 @@ void cpx_mtx_knk_metal(float* ptrR, float* ptrA, float* ptrB, int rowsA, int col cl_mem memR = clCreateBuffer(cpx_mtx_context, CL_MEM_WRITE_ONLY, sizeR, NULL, &err); gpuerr(err); //Populate buffers + unsigned long long int q = get_time(); err = clEnqueueWriteBuffer(cpx_mtx_command_queue, memA, CL_TRUE, 0, sizeA, ptrA, 0, NULL, NULL); gpuerr(err); err = clEnqueueWriteBuffer(cpx_mtx_command_queue, memB, CL_TRUE, 0, sizeB, ptrB, 0, NULL, NULL); gpuerr(err); + printf("%lu!!!!\n", get_time() - q); //Load and compile program cl_program program; -- 2.39.5