File tree Expand file tree Collapse file tree 7 files changed +24
-14
lines changed Expand file tree Collapse file tree 7 files changed +24
-14
lines changed Original file line number Diff line number Diff line change @@ -201,15 +201,15 @@ jobs:
201201 -s $GITHUB_WORKSPACE/src -o $GITHUB_WORKSPACE/build \
202202 -DCMAKE_INSTALL_PREFIX=$GITHUB_WORKSPACE/toolchain \
203203 -t Release \
204- --ci-defaults --use-zstd \
204+ --ci-defaults --use-zstd ${{ inputs.build_configure_extra_args }} \
205205 -DCMAKE_C_COMPILER_LAUNCHER=ccache \
206206 -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
207- -DLLVM_INSTALL_UTILS=ON \
208- ${{ inputs.build_configure_extra_args }}
207+ -DLLVM_INSTALL_UTILS=ON
209208 - name : Compile
210209 id : build
211210 # Emulate default value for manual dispatch as we've run out of available arguments.
212211 run : cmake --build $GITHUB_WORKSPACE/build --target ${{ inputs.build_target || 'sycl-toolchain' }}
212+ - run : $GITHUB_WORKSPACE/build/bin/clang++ --version
213213 - name : check-llvm
214214 if : always() && !cancelled() && contains(inputs.changes, 'llvm')
215215 env :
Original file line number Diff line number Diff line change 2929 secrets : inherit
3030 with :
3131 build_cache_root : " /__w/"
32- build_configure_extra_args : |
33- --hip --cuda \
34- -DLLVM_VC_REPOSITORY="${{ github.repositoryUrl }}" -DLLVM_VC_REVISION="${{ github.sha }} Nightly build" \
35- -DCLANG_VC_REPOSITORY="${{ github.repositoryUrl }}" -DCLANG_VC_REVISION="${{ github.sha }} Nightly build"
32+ build_configure_extra_args : ' --hip --cuda -DSYCL_BUILD_INFO="Nightly"'
3633 build_image : ghcr.io/intel/llvm/ubuntu2204_build:latest
3734
3835 retention-days : 90
@@ -194,10 +191,7 @@ jobs:
194191 # functionality, make sure Linux/Windows names follow the same pattern.
195192 toolchain_artifact_filename : sycl_windows.tar.gz
196193 # Disable the spirv-dis requirement as to not require SPIR-V Tools.
197- build_configure_extra_args : |
198- -DLLVM_SPIRV_ENABLE_LIBSPIRV_DIS=off ^
199- -DLLVM_VC_REPOSITORY="${{ github.repositoryUrl }}" -DLLVM_VC_REVISION="${{ github.sha }} Nightly build" ^
200- -DCLANG_VC_REPOSITORY="${{ github.repositoryUrl }}" -DCLANG_VC_REVISION="${{ github.sha }} Nightly build"
194+ build_configure_extra_args : -DLLVM_SPIRV_ENABLE_LIBSPIRV_DIS=off -DSYCL_BUILD_INFO="Nightly"
201195 build_target : all
202196
203197 e2e-win :
Original file line number Diff line number Diff line change @@ -147,19 +147,19 @@ jobs:
147147 IF NOT EXIST D:\github\_work\cache MKDIR D:\github\_work\cache
148148 IF NOT EXIST D:\github\_work\cache\${{inputs.build_cache_suffix}} MKDIR D:\github\_work\cache\${{inputs.build_cache_suffix}}
149149 python.exe src/buildbot/configure.py -o build ^
150- --ci-defaults --use-zstd ^
150+ --ci-defaults --use-zstd %ARGS% ^
151151 "-DCMAKE_C_COMPILER=${{inputs.cxx}}" ^
152152 "-DCMAKE_CXX_COMPILER=${{inputs.cxx}}" ^
153153 "-DCMAKE_INSTALL_PREFIX=%GITHUB_WORKSPACE%\install" ^
154154 -DCMAKE_CXX_COMPILER_LAUNCHER=ccache ^
155155 -DCMAKE_C_COMPILER_LAUNCHER=ccache ^
156- -DLLVM_INSTALL_UTILS=ON ^
157- %ARGS%
156+ -DLLVM_INSTALL_UTILS=ON
158157 - name : Build
159158 id : build
160159 shell : bash
161160 run : |
162161 cmake --build build --target ${{ inputs.build_target }}
162+ - run : build/bin/clang++ --version
163163 - name : check-llvm
164164 if : always() && !cancelled() && contains(inputs.changes, 'llvm')
165165 shell : bash
Original file line number Diff line number Diff line change @@ -66,6 +66,9 @@ namespace clang {
6666 // / the CL_SYCL_LANGUAGE_VERSION and SYCL_LANGUAGE_VERSION macros.
6767 llvm::SmallVector<std::pair<llvm::StringRef, llvm::StringRef>, 2 >
6868 getSYCLVersionMacros (const LangOptions &LangOpts);
69+
70+ // / Retrieves a string representing the Intel SYCL compiler build info.
71+ std::string getSYCLBuildInfo ();
6972}
7073
7174#endif // LLVM_CLANG_BASIC_VERSION_H
Original file line number Diff line number Diff line change @@ -44,6 +44,10 @@ add_custom_command(OUTPUT "${version_inc}"
4444 "-DLLVM_FORCE_VC_REPOSITORY=${LLVM_FORCE_VC_REPOSITORY} "
4545 -P "${generate_vcs_version_script} " )
4646
47+ if (SYCL_BUILD_INFO)
48+ file (APPEND ${version_inc} "#define SYCL_BUILD_INFO \" ${SYCL_BUILD_INFO} \"\n " )
49+ endif ()
50+
4751# Mark the generated header as being generated.
4852set_source_files_properties ("${version_inc} "
4953 PROPERTIES GENERATED TRUE
Original file line number Diff line number Diff line change @@ -65,6 +65,14 @@ std::string getClangVendor() {
6565#endif
6666}
6767
68+ std::string getSYCLBuildInfo () {
69+ #ifdef SYCL_BUILD_INFO
70+ return SYCL_BUILD_INFO;
71+ #else
72+ return " development" ;
73+ #endif
74+ }
75+
6876std::string getClangFullRepositoryVersion () {
6977 std::string buf;
7078 llvm::raw_string_ostream OS (buf);
Original file line number Diff line number Diff line change @@ -2726,6 +2726,7 @@ void Driver::PrintSYCLToolHelp(const Compilation &C) const {
27262726}
27272727
27282728void Driver::PrintVersion (const Compilation &C, raw_ostream &OS) const {
2729+ OS << " Intel SYCL compiler " << getSYCLBuildInfo () << " build based on:\n " ;
27292730 if (IsFlangMode ()) {
27302731 OS << getClangToolFullVersion (" flang" ) << ' \n ' ;
27312732 } else {
You can’t perform that action at this time.
0 commit comments