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

index 4269040a406818609b3a9c31f7cdb95d6111cc03..73afa05f1fb06ca0a923e394f4666684e861b9e5 100644 (file)
@@ -220,8 +220,7 @@ 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
-               printf("%i;%i\n", tmp.rows, tmp.cols);
-               if (USE_GPU)
+               if (USE_GPU && (tmp.rows >= 512 || tmp.cols >= 512))
                {
                        GPU_knk
                        (