]> foleosoft.com Git - QAnsel.git/commitdiff
Mon Mar 4 10:19:38 AM EST 2024
authormiha-q <>
Mon, 4 Mar 2024 15:19:38 +0000 (10:19 -0500)
committermiha-q <>
Mon, 4 Mar 2024 15:19:38 +0000 (10:19 -0500)
src/QAnsel.c

index 957ae01fb28d02f6105dd6af9e48f83d23fde849..b141adce6ca5bf5057a870f4e1787835c2cf9aee 100644 (file)
@@ -223,9 +223,9 @@ void qansel_instruction(cpx_mtx_t* stateVector, unsigned char qubitCount, QInstr
                tmp.ptr = malloc(tmp.rows * (tmp.cols * 2) * sizeof(float));
 
                #ifdef GPU_ENABLED
-               if (USE_GPU/* && (tmp.rows >= 512 || tmp.cols >= 512)*/)
+               if (USE_GPU && (tmp.rows >= 512 || tmp.cols >= 512))
                {
-                       cpx_mtx_knk
+                       cpx_mtx_knk_metal
                        (
                                tmp.ptr, filter.ptr, gate.ptr,
                                tmp.rows, tmp.cols,