Browse Source

Added run script, fix for gpu for dwt2d benchmark

    Introduced a fix on a hardcoded number for the OCL platform, that
    doesn't match the topology on the odroid
Andrea Gussoni 8 năm trước cách đây
mục cha
commit
979ec5d722
2 tập tin đã thay đổi với 3 bổ sung2 xóa
  1. 2 2
      opencl/dwt2d/main.cpp
  2. 1 0
      opencl/dwt2d/run-gpu

+ 2 - 2
opencl/dwt2d/main.cpp

@@ -70,7 +70,7 @@ cl_context CreateContext()
     cl_context_properties contextProperties[] =
     {
         CL_CONTEXT_PLATFORM,
-        (cl_context_properties)platformIds[1],
+        (cl_context_properties)platformIds[0],
         0
     };
     context = clCreateContextFromType(contextProperties, CL_DEVICE_TYPE_GPU,
@@ -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-gpu

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