]> foleosoft.com Git - QAnsel.git/commitdiff
Mon Mar 4 05:47:29 PM EST 2024
authormiha-q <>
Mon, 4 Mar 2024 22:47:29 +0000 (17:47 -0500)
committermiha-q <>
Mon, 4 Mar 2024 22:47:29 +0000 (17:47 -0500)
src/QAnsel.c

index 588603983806328cf0dbced02c38f801835e0067..7d2236cfe5dbffa20876d79ebf0138fc78d3c008 100644 (file)
@@ -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;