Explorar o código

Added run script, fix for cpu dwt2d benchmark

Fixed a missing type of a variable
Andrea Gussoni %!s(int64=8) %!d(string=hai) anos
pai
achega
49f0b2387c
Modificáronse 2 ficheiros con 2 adicións e 1 borrados
  1. 1 1
      opencl/dwt2d/main.cpp
  2. 1 0
      opencl/dwt2d/run-cpu

+ 1 - 1
opencl/dwt2d/main.cpp

@@ -831,7 +831,7 @@ void processDWT(struct dwt *d, int forward, int writeVisual)
 int main(int argc, char **argv) 
 {
     int optindex = 0;
-    char ch;
+    signed char ch;
     struct option longopts[] = 
 	{
         {"dimension",   required_argument, 0, 'd'}, //dimensions of src img

+ 1 - 0
opencl/dwt2d/run-cpu

@@ -0,0 +1 @@
+./dwt2d -d 1024x1024 -f -5 -l 10 ../../data/dwt2d/rgb.bmp