- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Each time you recompile an OpenCL input file and build an intermediate binary with the "-ir=<file>" switch there is a new timestamp/GUID/something buried in the binary.
The same input file should generate the same binary output (modulo the same workstation, compiler, driver, etc.).
I really wish this wasn't happening as it's not very friendly to version control systems.
This is just for the .IR output option and I don't know if it also occurs with the SPIR-V output options.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for this report. I'm investigating and will get back to you within a few days.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Unchanged kernel binaries are still generating a unique ID on every recompile.
Is there a good engineering reason for this? It's not very version control friendly.
mov (1|M0) null<1>:ud <RANDOM>:ud <--- first line of kernel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Allan M. wrote:
Unchanged kernel binaries are still generating a unique ID on every recompile.
Hello,
Are you generating your kernel binaries using the offline compiler or some other mechanism? If you're using the offline compiler, which version are you using, and what is your command line?
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm using ioc64:
Kernel Builder for OpenCL API - compiler command line, version 6.3.0.1904
Command line:
ioc64 -cmd=build -bo="-cl-std=CL1.2 -cl-single-precision-constant -cl-denorms-are-zero -cl-mad-enable -cl-no-signed-zeros -cl-fast-relaxed-math -cl-kernel-arg-info" -device=gpu -input=foo.pre.cl -ir=foo.pre.ir -asm
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks, I'm able to reproduce the problem and I'm trying to figure out where that extra instruction is coming from.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quick update: We figured out where the extra instruction is coming from (long story) and are working on a fix.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Great, thanks!

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page