Liu, Fang L 75b46bbc7d Don't swap src operands if the swapping causes invalid datetype combination for mad instruction
Don't swap src0 and src1 of pseudo_mad instruction in HWConformity if the swapping
causes invalid datatype combination. For example:
pseudo_mad (32)  result1(0,0)<1>:d  x1(0,0)<2;0>:uw  r0.1<0;0>:d  z(0,0)<1;0>:d

In this case, we swap src0(actually src2) and src1 if src1 is scalar but src0 is
not, as src0(actually src2) has no regioning support:
pseudo_mad (32)  result1(0,0)<1>:d  r0.1<0;0>:d  x1(0,0)<2;0>:uw  z(0,0)<1;0>:d

After swapping, the datatype combination is invalid as it changes the datatype
combination from (W * D + D) to (D * W + D). If src2(actually src0) is D, HW only
supports (W * D + D).

Then we wouldn't generate mad, and we generate mul+add instead. But without this
swapping, actually we can generate mad as src0(actually src2) is aligned to dst.
2025-08-29 03:22:04 +02:00
2025-04-23 00:20:02 +02:00
2025-08-08 11:01:43 +02:00
2025-06-30 13:41:06 +02:00
2025-06-30 13:41:06 +02:00
2021-09-07 08:13:39 +02:00
2022-10-19 20:14:02 +02:00
2021-11-29 14:22:02 +01:00
2024-03-11 09:08:17 +01:00
2025-05-12 10:57:52 +02:00
2023-04-11 10:21:29 +02:00

Intel® Graphics Compiler for OpenCL™

GitHub release (latest by date)

Introduction

The Intel® Graphics Compiler for OpenCL™ is an LLVM-based compiler for OpenCL™ targeting Intel® graphics hardware architecture.

Please visit the compute Intel® Graphics Compute Runtime repository for more information about the Intel® open-source compute stack: https://github.com/intel/compute-runtime

License

The Intel® Graphics Compute Runtime for OpenCL™ is distributed under the MIT License.

For detailed terms, you can access the full License at:

https://opensource.org/licenses/MIT

Dependencies

Supported Linux versions

IGC is continuously built and tested on the following 64-bit Linux operating systems:

  • Ubuntu 24.04
  • Ubuntu 22.04

Documentation

More documentation is available in the documentation directory.

Supported Platforms

  • Intel® Xe2
  • Intel® Xe
  • Intel® Gen12 graphics
  • Intel® Gen11 graphics
  • Intel® Gen9 graphics

No code changes may be introduced that would regress support for any currently supported hardware. All contributions must ensure continued compatibility and functionality across all supported hardware platforms. Failure to maintain hardware compatibility may result in the rejection or reversion of the contribution.

Any deliberate modifications or removal of hardware support will be transparently communicated in the release notes.

API options are solely considered as a stable interface. Any debug parameters, environmental variables, and internal data structures, are not considered as an interface and may be changed or removed at any time.

How to provide feedback

If you have any feedback or questions, please open an issue through the native github.com interface: https://github.com/intel/intel-graphics-compiler/issues.

How to contribute

Create a pull request on github.com with your changes. Ensure that your modifications build without errors. A maintainer will get in touch with you if there are any inquiries or concerns.

Description
No description provided
Readme 157 MiB
Languages
C++ 58.2%
C 22.2%
LLVM 18.3%
CMake 0.7%
Python 0.3%
Other 0.2%