David Anderson wrote, On 02.12.11 00:37: > That's probably the best approach > (although the files would never get deleted). > Make sure you include a version# in the filename.
Hm - what should the version number include? For precompiled OpenCL kernels I would think of: - instead of using a version number that e.g. corresponds to the application version, I would consider comparing the timestamps of the current application binary and of the precompiled kernel. If the kernel file is older, rebuild it. Or else you may end up with many possibly large files that will not get deleted. Note: this will only work if you can ensure that you have only one application version at a time, which is usually the case on anonymous platform (app_info.xml), but not with automatically updated project apps. - when writing the kernel file, write it locally in the slot diretory, then move (boinc_rename) it into the final file. Or else you may end up with a broken kernel file if for some reason BOINC started two instances of the application. Best, Bernd _______________________________________________ boinc_dev mailing list [email protected] http://lists.ssl.berkeley.edu/mailman/listinfo/boinc_dev To unsubscribe, visit the above URL and (near bottom of page) enter your email address.
