]> foleosoft.com Git - QAnsel.git/commitdiff
Sun Mar 3 11:55:17 PM EST 2024
authormiha-q <>
Mon, 4 Mar 2024 04:55:17 +0000 (23:55 -0500)
committermiha-q <>
Mon, 4 Mar 2024 04:55:17 +0000 (23:55 -0500)
src/QAnsel.c

index 19f0704809c7de76f91020179145834123d5e2fd..5084adfe4b33ec9a8d65bbc9aef5d19b2f3bc3ba 100644 (file)
@@ -220,9 +220,15 @@ void qansel_instruction(cpx_mtx_t* stateVector, uint8_t qubitCount, QInstr* inst
                tmp.ptr = malloc((tmp.rows * 2) * (tmp.cols * 2) * sizeof(float));
 
                #ifdef GPU_ENABLED
-               if (USE_GPU && (tmp.rows >= 4096 || tmp.cols >= 4096))
-               {
-                       GPU_knk
+               if (USE_GPU && (tmp.rows >= 512 || tmp.cols >= 512))
+               {
+                       //GPU_knk slower for some reason?
+                       //(
+                       //      tmp.ptr, tmp.rows, tmp.cols,
+                       //      filter.ptr, filter.rows, filter.cols,
+                       //      gate.ptr, gate.rows, gate.cols
+                       //);
+                       cpx_ncpx_knk_mt
                        (
                                tmp.ptr, tmp.rows, tmp.cols,
                                filter.ptr, filter.rows, filter.cols,