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

index 0cf519f5a1b8b52fe2443c576c88a19210f35ec4..add65cc78d71181a422722279e46ff96e495bdcc 100644 (file)
@@ -256,8 +256,7 @@ void qansel_instruction(cpx_mtx_t* stateVector, uint8_t qubitCount, QInstr* inst
 
        cpx_mtx_init(&tmp, stateVector->rows, stateVector->cols);
        #ifdef GPU_ENABLED
-       printf("%i;%i\n", filter.cols, stateVector->cols);
-       if (USE_GPU)
+       if (USE_GPU && (filters.cols >= 512 || stateVector->cols >= 512))
        {
                GPU_mmul
                (