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

index 6dea39327f5d44e6afd6b3023af2724c368aacd3..3dec57cf0e49299fda7fdf6790aed5d24fe2bbc9 100644 (file)
@@ -235,9 +235,9 @@ void qansel_instruction(cpx_mtx_t* stateVector, unsigned char qubitCount, QInstr
 
        cpx_mtx_init(&tmp, stateVector->rows, stateVector->cols);
        #ifdef GPU_ENABLED
-       if (USE_GPU && (filter.cols >= 512 || stateVector->cols >= 512))
+       if (USE_GPU)
        {
-               cpx_mtx_dot(tmp.ptr, stateVector->ptr, filter.ptr, stateVector->rows, stateVector->cols, filter.rows, filter.cols);
+               cpx_mtx_dot_metal(tmp.ptr, stateVector->ptr, filter.ptr, stateVector->rows, stateVector->cols, filter.rows, filter.cols);
        }
        else
        {