Results 1 to 3 of 3

Thread: -O0 and -O3 speed difference

  1. #1
    Junior Member
    Join Date
    Dec 2009
    Posts
    22

    -O0 and -O3 speed difference

    hi, I found there is almost no speed difference for -O3 and -O0 for my openCL code. is this normal? thanks!

  2. #2
    Junior Member
    Join Date
    Jan 2010
    Location
    California
    Posts
    6

    Re: -O0 and -O3 speed difference

    Optimization flags for the CL compiler - the part of the runtime that actually compiles your kernel and could therefore affect kernel performance - are passed during the call to clBuildProgram(). I'm guessing that you're referring to your command line or Makefile optimization flags?

    Check our sections 5.4.2 and 5.4.3.3 in the CL spec; they should clarify the situation. Note that there is a standard set of optimization flags a conforming implementation is required to provide, but individual vendors could add all kinds of goodies in there.

  3. #3
    Junior Member
    Join Date
    Dec 2009
    Posts
    22

    Re: -O0 and -O3 speed difference

    thanks! yes, I forgot that part...

Similar Threads

  1. speed factor
    By naroqueen in forum OpenCL
    Replies: 1
    Last Post: 12-13-2010, 06:08 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •