From 30f434d78b58e3a4198cf5ba5a9e5a0ce1cd5292 Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期四, 07 七月 2022 14:32:36 +0800
Subject: [PATCH] 'bug修复'

---
 ConsoleApplication/OpenCLExcuter.cpp |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/ConsoleApplication/OpenCLExcuter.cpp b/ConsoleApplication/OpenCLExcuter.cpp
index 5ca86a0..45d27b2 100644
--- a/ConsoleApplication/OpenCLExcuter.cpp
+++ b/ConsoleApplication/OpenCLExcuter.cpp
@@ -18,7 +18,7 @@
 		throw("Creat context failed!");
 	}
 	//创建程序;注意要用"rb"
-	fopen_s(&program_handle, "kernel.cl", "rb");
+	fopen_s(&program_handle, "D:\\workspace\\CPlusTest\\ConsoleApplication\\ConsoleApplication\\kernel.cl", "rb");
 	if (program_handle == NULL) {
 		throw("The kernle can not be opened!");
 	}
@@ -222,7 +222,7 @@
 
 	int inputSize = (img_width * img_height);
 
-	int resultSize = (pos_count / 3) * (num_count * num_width * num_height * 10);
+	int resultSize = (pos_count / 4) * (num_count * num_width * num_height * 10);
 
 
 	//创建缓存对象
@@ -437,7 +437,7 @@
 
 
 	int inputSize = imgWidth * imgHeight;
-	int resultSize = lines * 2;
+	int resultSize = lines * 3;
 
 
 	//创建缓存对象

--
Gitblit v1.8.0