FILE* RANDOM_FILE;
#define GPU_ENABLED
unsigned char USE_GPU = 1;
-unsigned char USE_THREADS = 0;
+unsigned char USE_THREADS = 1;
typedef struct
{
printf("%ix%i (knk)\n", tmp.rows, tmp.cols);
unsigned long int us1, us2;
us1 = get_time();
- cpx_mtx_knk_metal(tmp.ptr, stateVector->ptr, filter.ptr, stateVector->rows, stateVector->cols, filter.rows, filter.cols);
+ cpx_mtx_knk_metal(tmp.ptr, filter.ptr, gate.ptr, filter.rows, filter.cols, gate.rows, gate.cols);
us2 = get_time();
printf("\tMetal: %lu\n", us2 - us1);
us1 = get_time();
- cpx_mtx_knk_threads(tmp.ptr, stateVector->ptr, filter.ptr, stateVector->rows, stateVector->cols, filter.rows, filter.cols);
+ cpx_mtx_knk_threads(tmp.ptr, filter.ptr, gate.ptr, filter.rows, filter.cols, gate.rows, gate.cols);
us2 = get_time();
printf("\tThreads: %lu\n", us2 - us1);
us1 = get_time();
- cpx_mtx_knk(tmp.ptr, stateVector->ptr, filter.ptr, stateVector->rows, stateVector->cols, filter.rows, filter.cols);
+ cpx_mtx_knk(tmp.ptr, filter.ptr, gate.ptr, filter.rows, filter.cols, gate.rows, gate.cols);
us2 = get_time();
printf("\tBare: %lu\n", us2 - us1);