From: miha-q <> Date: Mon, 4 Mar 2024 17:22:59 +0000 (-0500) Subject: Mon Mar 4 12:22:59 PM EST 2024 X-Git-Url: http://www.foleosoft.com/?a=commitdiff_plain;h=e78382652e42897faa5358d185bdaa0955f3a620;p=QAnsel.git Mon Mar 4 12:22:59 PM EST 2024 --- diff --git a/src/QAnsel.c b/src/QAnsel.c index 252ced9..4980a72 100644 --- a/src/QAnsel.c +++ b/src/QAnsel.c @@ -214,7 +214,7 @@ void qansel_instruction(cpx_mtx_t* stateVector, unsigned char qubitCount, QInstr tmp.ptr = malloc(tmp.rows * (tmp.cols * 2) * sizeof(float)); #ifdef GPU_ENABLED - if (USE_GPU/* && (tmp.rows >= 512 || tmp.cols >= 512)*/) + if (USE_GPU && (tmp.rows >= 1024 || tmp.cols >= 1024)) { cpx_mtx_knk(tmp.ptr, filter.ptr, gate.ptr, filter.rows, filter.cols, gate.rows, gate.cols); }