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

Document SYCL backend behavior with no selected GPU architecture #620

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

masterleinad
Copy link
Contributor

Fixes #619.

Comment on lines +737 to +740
If the SYCL backend is enabled and no GPU architecture is specified,
Kokkos will use Just-In-Time (JIT) compilation and select the first visible device for the default execution space instance.
There is no restriction to a particular SYCL device type.
Thus, this is the only option to target a CPU with the SYCL backend (which is experimental, untested, and not optimized for).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does that imply we define Kokkos_ARCH_INTEL_GEN=ON if no Intel GPU arch is enabled or is it more subtle than that?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, we can't assume that we are building for an Intel GPU so we don't define enable any extra Kokkos_ARCH* options.

@@ -734,6 +734,11 @@ Kokkos will attempt to autodetect the architecture flag at configuration time.
Intel GPUs
~~~~~~~~~~

If the SYCL backend is enabled and no GPU architecture is specified,
Kokkos will use Just-In-Time (JIT) compilation and select the first visible device for the default execution space instance.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Although the discussion about device selection is important, I am not sure it belongs here

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

Successfully merging this pull request may close these issues.

Clarify default behavior with SYCL when no GPU architecture is specified
2 participants