Results 1 to 3 of 3

Thread: rebuilding programs

  1. #1
    Junior Member
    Join Date
    Sep 2009
    Posts
    6

    rebuilding programs

    hello,
    I haven't found anything in the spec mentioning whether it is possible to rebuild programs e.g with different options or for other devices after they have been build the first time.

    Have I overlooked something or is it obvious that its possible since its not specified explicitly? I had the feeling that subsequent builds with other options were simply ignored (release+create new program from source worked of course but is not really "clean").

  2. #2
    Senior Member
    Join Date
    Jul 2009
    Location
    Northern Europe
    Posts
    311

    Re: rebuilding programs

    If you change the program code or options then a rebuild should do a real rebuild. I don't know if this is tested, but if it doesn't then it's a bug in the implementation. Of course you could always just create new programs for each of these rebuilds to keep them separate.

  3. #3
    Junior Member
    Join Date
    Sep 2009
    Posts
    6

    Re: rebuilding programs

    thank you for the quick reply dbs2,

    the spec should be more specific about that.
    clCreateProgramWithSource makes apparently a defensive copy of the sources, if you change them afterwards it won't get noticed. You can alter rebuilds only via build options of clBuildProgram which didn't work for me also (filing a bug report right now).

Similar Threads

  1. Compiling the simple programs
    By ehsan2004 in forum OpenGL ES general technical discussions
    Replies: 6
    Last Post: 12-06-2004, 03:35 AM
  2. Compiling the OpenML programs
    By ehsan2004 in forum OpenML Coding & Technical Issues
    Replies: 2
    Last Post: 11-20-2004, 11:53 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
  •