-
Notifications
You must be signed in to change notification settings - Fork 34
Set large GRF in cmake #445
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
base: sycl-develop
Are you sure you want to change the base?
Set large GRF in cmake #445
Conversation
@@ -69,14 +69,7 @@ $ CC=clang CXX=clang++ cmake .. -G Ninja \ | |||
|
|||
CMake will check that DPC++ compiler is available in the system, | |||
and it will download the MKL library if it cannot find it. | |||
To get better performance result we require the following combinations of the environment variables flags to provide better performance hints for generating optimised code. For ahead of time (AOT) compilation, the following options have to be set during compilation and for Just in time (JIT) Compilation when running |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They are still needed for spir64 target. But because we don't describe that option I don't think this needs to be mentioned.
export SYCL_PROGRAM_COMPILE_OPTIONS="-ze-opt-large-register-file" | ||
export IGC_VISAOptions="-perfmodel" | ||
export IGC_VectorAliasBBThreshold=10000 | ||
export IGC_ExtraOCLOptions="-cl-intel-256-GRF-per-thread" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was anyhow redundant for -ze-opt-large-register-file (in the JIT case)
|
||
``` | ||
export SYCL_PROGRAM_COMPILE_OPTIONS="-ze-opt-large-register-file" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is now set by this PR for AOT. Before this was only used for JIT (in which case this env-variable is used).
|
||
``` | ||
export SYCL_PROGRAM_COMPILE_OPTIONS="-ze-opt-large-register-file" | ||
export IGC_VISAOptions="-perfmodel" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this is needed for anything. Anyone remember why this is here?
``` | ||
export SYCL_PROGRAM_COMPILE_OPTIONS="-ze-opt-large-register-file" | ||
export IGC_VISAOptions="-perfmodel" | ||
export IGC_VectorAliasBBThreshold=10000 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was already added automatically before.
Closes #427