From: miha-q <> Date: Mon, 4 Mar 2024 22:47:29 +0000 (-0500) Subject: Mon Mar 4 05:47:29 PM EST 2024 X-Git-Url: http://www.foleosoft.com/?a=commitdiff_plain;h=753b846a494b7778747dee6819b329475269c56a;p=QAnsel.git Mon Mar 4 05:47:29 PM EST 2024 --- diff --git a/src/QAnsel.c b/src/QAnsel.c index 5886039..7d2236c 100644 --- a/src/QAnsel.c +++ b/src/QAnsel.c @@ -11,7 +11,7 @@ unsigned char HIDDEN_VARIABLE = 0; FILE* RANDOM_FILE; #define GPU_ENABLED -unsigned char USE_GPU = 0; +unsigned char USE_GPU = 1; unsigned char USE_THREADS = 1; typedef struct @@ -267,19 +267,8 @@ void qansel_instruction(cpx_mtx_t* stateVector, unsigned char qubitCount, QInstr us2 = get_time(); printf("\tBare: %lu\n", us2 - us1); #else - if (USE_GPU) - { cpx_mtx_dot_metal(tmp.ptr, stateVector->ptr, filter.ptr, stateVector->rows, stateVector->cols, filter.rows, filter.cols); - } - else if (USE_THREADS) - { - cpx_mtx_dot_threads(tmp.ptr, stateVector->ptr, filter.ptr, stateVector->rows, stateVector->cols, filter.rows, filter.cols); - } - else - { - cpx_mtx_dot(tmp.ptr, stateVector->ptr, filter.ptr, stateVector->rows, stateVector->cols, filter.rows, filter.cols); - } #endif free(stateVector->ptr); stateVector->ptr = tmp.ptr;