Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intel graphics compiler fails to build #293

Closed
ht990332 opened this issue Jun 29, 2023 · 8 comments
Closed

Intel graphics compiler fails to build #293

ht990332 opened this issue Jun 29, 2023 · 8 comments

Comments

@ht990332
Copy link

cmake -B build -S intel-graphics-compiler
-G 'Unix Makefiles'
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_INSTALL_PREFIX=/usr
-DBUILD_SHARED_LIBS:BOOL=ON
-DCMAKE_INSTALL_LIBDIR=lib
-DIGC_OPTION__ARCHITECTURE_TARGET='Linux64'
-DIGC_OPTION__LINK_KHRONOS_SPIRV_TRANSLATOR=ON
-DIGC_OPTION__SPIRV_TOOLS_MODE=Prebuilds
-DIGC_OPTION__SPIRV_TRANSLATOR_MODE=Prebuilds
-DIGC_OPTION__LLVM_MODE=Prebuilds
-DIGC_OPTION__USE_PREINSTALLED_SPRIV_HEADERS=ON
-DIGC_OPTION__VC_INTRINSICS_MODE=Prebuilds
-DIGC_OPTION__LLVM_PREFERRED_VERSION=16.0.6
-DINSTALL_GENX_IR=ON
-Wno-dev
build.log

@vmustya
Copy link
Contributor

vmustya commented Jun 29, 2023

IGC doesn't support LLVM-16 yet: #289. Please build it against LLVM-14.

@ht990332
Copy link
Author

It depends on other components that are already built using llvm16.
I'll need to wait then.

@ht990332
Copy link
Author

Are there any instructions on compiling intel-graphics-conpiler without any prebuilts?

@pszymich
Copy link
Contributor

Hi @ht990332, yes, see here: https://github.com/intel/intel-graphics-compiler/blob/master/documentation/build_ubuntu.md#build-from-sources

@AGindinson
Copy link
Contributor

Hi @ht990332, was the source-based build successful? Can we close this issue, given that LLVM 16 support is being tracked in #289?

@ht990332
Copy link
Author

ht990332 commented Aug 18, 2023 via email

@AGindinson
Copy link
Contributor

@ht990332, just to clarify, do these errors persist with LLVM 14-based components (as per @vmustya/@pszymich's advice) and CMake options updated to something like below for source-based build?

-DIGC_OPTION__SPIRV_TRANSLATOR_MODE=Source
-DIGC_OPTION__LLVM_MODE=Source
-DIGC_OPTION__VC_INTRINSICS_MODE=Source
-DIGC_OPTION__LLVM_PREFERRED_VERSION=14.0.5

@pszymich
Copy link
Contributor

@ht990332 if you check @AGindinson 's tips and further problems emerge please reopen.

@pszymich pszymich closed this as not planned Won't fix, can't repro, duplicate, stale Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants