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

index 43bf9aa03ff485afd1f2614609e1d9db2009f8fe..3c868eb9b4b51ad2ead28c78647022fa746da2f5 100644 (file)
@@ -10,7 +10,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 = 0;
 
 typedef struct
@@ -234,6 +234,7 @@ void qansel_instruction(cpx_mtx_t* stateVector, unsigned char qubitCount, QInstr
        cpx_mtx_init(&tmp, stateVector->rows, stateVector->cols);
        if (USE_GPU)
        {
+               printf("A\n");
                cpx_mtx_dot_metal(tmp.ptr, stateVector->ptr, filter.ptr, stateVector->rows, stateVector->cols, filter.rows, filter.cols);
        }
        else if (USE_THREADS)