From 21ee10e075d4f929a3decb862b584d5168d3c8c8 Mon Sep 17 00:00:00 2001 From: miha-q <> Date: Sun, 3 Mar 2024 23:55:17 -0500 Subject: [PATCH] Sun Mar 3 11:55:17 PM EST 2024 --- src/QAnsel.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) 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, -- 2.39.5