Skip to content

Why is the binary compiled differently each time? #6391

Answered by al42and
Bach234 asked this question in Q&A
Discussion options

You must be logged in to vote

I'm not an expert, but, in short, when compiling SYCL code, clang has to do multiple stages and generate several intermediate files with such randomized names.

You can read more here: https://github.com/intel/llvm/blob/sycl/sycl/doc/design/CompilerAndRuntimeDesign.md

Or you can add -v switch to clang and see it for yourself.

Note: -save-temps flag disables this randomization and allows reproducible builds.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Bach234
Comment options

@AlexeySachkov
Comment options

@Bach234
Comment options

Answer selected by Bach234
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #6390 on July 04, 2022 11:46.