From: miha-q <> Date: Tue, 5 Mar 2024 02:16:36 +0000 (-0500) Subject: Mon Mar 4 09:16:36 PM EST 2024 X-Git-Url: http://www.foleosoft.com/?a=commitdiff_plain;h=abccd6832a773772885ece27a9d270c37c10acce;p=QAnsel.git Mon Mar 4 09:16:36 PM EST 2024 --- diff --git a/src/QAnsel.c b/src/QAnsel.c index 2d5dcb7..3c05e2e 100644 --- a/src/QAnsel.c +++ b/src/QAnsel.c @@ -266,7 +266,7 @@ void qansel_instruction(cpx_mtx_t* stateVector, unsigned char qubitCount, QInstr us2 = get_time(); printf("\tBare: %lu\n", us2 - us1); #else - if (USE_GPU) + if (USE_GPU && tmp.cols >= 512) { cpx_mtx_dot_metal(tmp.ptr, stateVector->ptr, filter.ptr, stateVector->rows, stateVector->cols, filter.rows, filter.cols); }