From: miha-q <> Date: Mon, 4 Mar 2024 04:55:17 +0000 (-0500) Subject: Sun Mar 3 11:55:17 PM EST 2024 X-Git-Url: http://www.foleosoft.com/?a=commitdiff_plain;h=21ee10e075d4f929a3decb862b584d5168d3c8c8;p=QAnsel.git Sun Mar 3 11:55:17 PM EST 2024 --- diff --git a/src/QAnsel.c b/src/QAnsel.c index 19f0704..5084adf 100644 --- a/src/QAnsel.c +++ b/src/QAnsel.c @@ -220,9 +220,15 @@ void qansel_instruction(cpx_mtx_t* stateVector, uint8_t qubitCount, QInstr* inst tmp.ptr = malloc((tmp.rows * 2) * (tmp.cols * 2) * sizeof(float)); #ifdef GPU_ENABLED - if (USE_GPU && (tmp.rows >= 4096 || tmp.cols >= 4096)) - { - GPU_knk + if (USE_GPU && (tmp.rows >= 512 || tmp.cols >= 512)) + { + //GPU_knk slower for some reason? + //( + // tmp.ptr, tmp.rows, tmp.cols, + // filter.ptr, filter.rows, filter.cols, + // gate.ptr, gate.rows, gate.cols + //); + cpx_ncpx_knk_mt ( tmp.ptr, tmp.rows, tmp.cols, filter.ptr, filter.rows, filter.cols,