[SYCL] Add in-source versioning for DPCPP compiler#21570
Conversation
cmake/Modules/DPCPPVersion.cmake should be updated to hold version information for each release.
|
@tahonermann I am unable to add you as a reviewer for some reason |
YuriPlyakhin
left a comment
There was a problem hiding this comment.
llvm/CMakeLists.txt change LGTM
|
I think I have addressed all review comments. The latest commit adds a pre-release indicator. The commit also changes the --version output with SYCL_BUILD_INFO to include version information |
Please remove Jira info from the description. |
tahonermann
left a comment
There was a problem hiding this comment.
This looks good to me. I added two comments that you can ignore or address in whatever way you feel is best. I don't need to review again.
@premanandrao the current guidelines allow us to mention the JIRA number without the link. I think it is useful to have this information in the log. |
I am not 100% certain though. I heard this in a call this week but I didn't verify with someone else. So I will remove it to be safe. Can someone else in this review weigh in just so I know. |
I don't know what the policy is for intel/llvm, but upstream LLVM policy was changed a while ago to explicitly allow mention of private metadata in commit messages (https://llvm.org/docs/DeveloperPolicy.html#commit-messages). |
|
Merging based on request from @elizabethandrews |
DPC++ Version Information is now stored in compiler source. clang --version will continue to display build information when local CI is used (i.e. SYCL_BUILD_INFO is defined), but will display in-source version otherwise. cmake/Modules/DPCPPVersion.cmake should be updated to hold version information for each release. Example Output: ``` DPC++ compiler 6.3.0 build based on: clang version 23.0.0git (https://github.com/intel/llvm.git 5947c2a) Target: x86_64-unknown-linux-gnu Thread model: posix InstalledDir: */releasebuild/bin Build config: +assertion ``` Fixes: intel#21510
Adds DPC++ compiler self-identification macros to differentiate intel/llvm compiler from upstream Clang and enable version detection for intel/llvm releases. Fixes:intel#21509 Depends on: intel#21570
DPC++ Version Information is now stored in compiler source. clang --version will continue to display build information when local CI is used (i.e. SYCL_BUILD_INFO is defined), but will display in-source version otherwise. cmake/Modules/DPCPPVersion.cmake should be updated to hold version information for each release. Example Output: ``` DPC++ compiler 6.3.0 build based on: clang version 23.0.0git (https://github.com/intel/llvm.git 5947c2a) Target: x86_64-unknown-linux-gnu Thread model: posix InstalledDir: */releasebuild/bin Build config: +assertion ``` Fixes: #21510
DPC++ Version Information is now stored in compiler source. clang --version will continue to display build information when local CI is used (i.e. SYCL_BUILD_INFO is defined), but will display in-source version otherwise.
cmake/Modules/DPCPPVersion.cmake should be updated to hold version information for each release.
Example Output:
Fixes: #21510