From: miha-q <> Date: Mon, 4 Mar 2024 17:15:55 +0000 (-0500) Subject: Mon Mar 4 12:15:55 PM EST 2024 X-Git-Url: http://www.foleosoft.com/?a=commitdiff_plain;h=345800225e5a7aca8e4138cb5d817d3fcea9ab01;p=QAnsel.git Mon Mar 4 12:15:55 PM EST 2024 --- diff --git a/src/QAnsel.c b/src/QAnsel.c index 6dea393..3dec57c 100644 --- a/src/QAnsel.c +++ b/src/QAnsel.c @@ -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 {