From: miha-q <>
Date: Mon, 4 Mar 2024 04:31:29 +0000 (-0500)
Subject: Sun Mar  3 11:31:29 PM EST 2024
X-Git-Url: http://www.foleosoft.com/?a=commitdiff_plain;h=ff0e45c0d64d6801295473a66445ffe6d41d1ea8;p=QAnsel.git

Sun Mar  3 11:31:29 PM EST 2024
---

diff --git a/src/QAnsel.c b/src/QAnsel.c
index 4269040..73afa05 100644
--- a/src/QAnsel.c
+++ b/src/QAnsel.c
@@ -220,8 +220,7 @@ 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
-		printf("%i;%i\n", tmp.rows, tmp.cols);
-		if (USE_GPU)
+		if (USE_GPU && (tmp.rows >= 512 || tmp.cols >= 512))
 		{
 			GPU_knk
 			(