Results 1 to 1 of 1

Thread: OpenCL performance

  1. #1
    Join Date
    Jan 2006
    Location
    Maui, Hawaii
    Posts
    120
    Thanks
    65
    Thanked 4 Times in 4 Posts
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default OpenCL performance

    After hours experimenting ...

    I wrote a couple programs to take 1000 integers and put them into 16 bins (a very simple histogram).

    The first program uses OpenCL and the second program uses the CPU (2.66 GHz Intel Core 2 Duo). The GPU is NVIDIA GeForce 9400 256 MB of VRAM.

    I added some clocking and the results were:

    OpenCL: 0.0011 seconds
    CPU: 0.000008 seconds

    So the OpenCL program takes something like 3 orders of magnitude longer to complete. (Note I put the timestamping around the *execution* and not the loading the program into the kernel or creating the 1000 values etc).

    My question is: where is the value in OpenCL?

    Is it that I have a bad GPU (my brother-in-law told me my GPU was not-so-great)? Is it that this can go on in the background while the more powerful CPU does other work in the foreground asynchronously? Am I breaking things up into workgroups incorrectly?

    I tried breaking up the OpenCL into a couple workgroups, but I'm probably doing it wrong. I would think a parallel execution would make it more effecient, but it takes about 100 microseconds longer when I break it up.

    I'm attaching my files, but they only work on OS X.6 (snow leopard). The build commands are:

    g++ -framework OpenCL -o test_opencl opencl_histo.cpp
    g++ -framework OpenCL -o test_cpu cpu_histo.cpp
    Attached Files Attached Files

Similar Threads

  1. Qt GUI Performance Help!
    By SeppBauer in forum Qt for Embedded and Mobile
    Replies: 4
    Last Post: 27th July 2013, 05:18
  2. Performance
    By manojmka in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 8th March 2010, 20:00
  3. Performance Issue
    By linuxdev in forum Qt Programming
    Replies: 1
    Last Post: 10th December 2008, 15:00
  4. Qt performance
    By yagabey in forum Qt Programming
    Replies: 3
    Last Post: 22nd October 2008, 22:05
  5. UDP Performance bad
    By tigertap in forum Qt Programming
    Replies: 5
    Last Post: 17th March 2008, 16:53

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.