Revision: 1509
          http://rigsofrods.svn.sourceforge.net/rigsofrods/?rev=1509&view=rev
Author:   rorthomas
Date:     2010-08-08 19:54:46 +0000 (Sun, 08 Aug 2010)

Log Message:
-----------
improved opencl tools a bit

Modified Paths:
--------------
    trunk/source/configurator/configurator.cpp
    trunk/source/configurator/ocl_bwtest.h

Modified: trunk/source/configurator/configurator.cpp
===================================================================
--- trunk/source/configurator/configurator.cpp  2010-08-08 19:45:12 UTC (rev 
1508)
+++ trunk/source/configurator/configurator.cpp  2010-08-08 19:54:46 UTC (rev 
1509)
@@ -2135,18 +2135,18 @@
        wxSizer *sizer_gpu2 = new wxBoxSizer(wxHORIZONTAL);
        const wxBitmap bm_ocl(opencllogo_xpm);
        wxStaticPicture *openCLImagePanel = new wxStaticPicture(GPUPanel, 
wxID_ANY, bm_ocl, wxPoint(0, 0), wxSize(200, 200), wxNO_BORDER);
-       sizer_gpu2->Add(openCLImagePanel, 0, wxGROW);
+       sizer_gpu2->Add(openCLImagePanel, 0, wxALL|wxALIGN_CENTER_VERTICAL, 3);
 
-       gputext = new wxTextCtrl(GPUPanel, wxID_ANY, _("press the button below 
to check if OpenCL is working for you"), wxDefaultPosition, wxDefaultSize, 
wxTE_READONLY|wxTE_MULTILINE);
-       sizer_gpu2->Add(gputext, 1, wxGROW);
+       gputext = new wxTextCtrl(GPUPanel, wxID_ANY, _("Please use the buttons 
below"), wxDefaultPosition, wxDefaultSize, wxTE_READONLY|wxTE_MULTILINE);
+       sizer_gpu2->Add(gputext, 1, wxGROW, 3);
 
-       sizer_gpu->Add(sizer_gpu2, 1, wxGROW);
+       sizer_gpu->Add(sizer_gpu2, 1, wxGROW, 3);
 
        wxButton *btng = new wxButton(GPUPanel, check_opencl, _("Check for 
OpenCL Support"));
-       sizer_gpu->Add(btng, 0, wxGROW);
+       sizer_gpu->Add(btng, 0, wxGROW, 3);
 
        wxButton *btnw = new wxButton(GPUPanel, check_opencl_bw, _("Check 
OpenCL Bandwidth"));
-       sizer_gpu->Add(btnw, 0, wxGROW);
+       sizer_gpu->Add(btnw, 0, wxGROW, 3);
 
        GPUPanel->SetSizer(sizer_gpu);
 #endif // USE_OPENCL

Modified: trunk/source/configurator/ocl_bwtest.h
===================================================================
--- trunk/source/configurator/ocl_bwtest.h      2010-08-08 19:45:12 UTC (rev 
1508)
+++ trunk/source/configurator/ocl_bwtest.h      2010-08-08 19:54:46 UTC (rev 
1509)
@@ -681,10 +681,11 @@
         }
     }
 
-       stream << "> Transfer Size (Bytes) : Bandwidth(MB/s)" << endl;
+       //stream << "> Transfer Size (Bytes) : Bandwidth(MB/s)" << endl;
     unsigned int i; 
     for(i = 0; i < count; i++)
     {
-               stream <<  "> " << memSizes[i] << " : " << bandwidths[i] << 
endl;
+               //stream <<  "> " << memSizes[i] << " : " << bandwidths[i] << 
endl;
+               stream <<  "Result: " << bandwidths[i] <<  " MB/s" << endl;
     }
 }


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
Rigsofrods-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rigsofrods-devel

Reply via email to