]> foleosoft.com Git - QAnsel.git/commitdiff
Mon Mar 4 09:11:22 PM EST 2024
authormiha-q <>
Tue, 5 Mar 2024 02:11:22 +0000 (21:11 -0500)
committermiha-q <>
Tue, 5 Mar 2024 02:11:22 +0000 (21:11 -0500)
src/QAnsel.c
src/complex.c

index 99e3f3d9e211558108774bba7b8d03c63a079eb2..21d278d4b166d3835ea6ddcf8c98a25db4422f16 100644 (file)
@@ -348,12 +348,12 @@ void qansel_run(unsigned char qubitCount, unsigned char bitCount, QInstr* instr,
        unsigned long int ns, ps;
        for (unsigned int i = 0; i < instrLen; i++)
        {
-               ns = get_time();
-               if (i > 0)
-               {
-                       printf("%s: %lu\n", instr[i].n, ns - ps);
-               }
-               ps = ns;
+               //ns = get_time();
+               //if (i > 0)
+               //{
+               //      printf("%s: %lu\n", instr[i].n, ns - ps);
+               //}
+               //ps = ns;
 
                cpx_t qqq;
                cpx_mtx_get(&stateVector, 0, 0, &qqq);
index d539e8350c7706d93970a97874e92c08cd50c8d4..f6654483c1d7368d592d8de1e993090c96e791d3 100644 (file)
@@ -517,7 +517,7 @@ void cpx_mtx_knk_metal(float* ptrR, float* ptrA, float* ptrB, int rowsA, int col
        err = clSetKernelArg(kernel, 6, sizeof(int), &colsB); gpuerr(clSetKernelArg);
 
        //Run the program
-       err = clEnqueueNDRangeKernel(cpx_mtx_command_queue, kernel, 2, NULL, (size_t[]){rowsR, colsR}, NULL, 0, NULL, NULL);
+       err = clEnqueueNDRangeKernel(cpx_mtx_command_queue, kernel, 1, NULL, (size_t[]){rowsR}, NULL, 0, NULL, NULL);
        gpuerr(clEnqueueNDRangeKernel);
 
        //Wait for completion