Skip to content

Conversation

guangyey
Copy link
Contributor

@guangyey guangyey commented Oct 15, 2025

Motivation

I would like to clarify that, according to the FP64 Partial Emulation Proposal, the SYCL compiler and IGC only perform FP64 conversion on the DG2 and ATS-M architectures, and this is only available when AOT is enabled.

If AOT is not enabled, many warnings like the following will be emitted:

icx: warning: '-fsycl-fp64-conv-emu' option is supported only for AOT compilation of Intel GPUs. It will be ignored for other targets

To avoid these warnings, the -fsycl-fp64-conv-emu flag should only be added when AOT is enabled for the specific target architectures.

@Copilot Copilot AI review requested due to automatic review settings October 15, 2025 09:59
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR refactors the FP64 conversion emulation flag handling to eliminate unnecessary warnings when AOT (Ahead-of-Time) compilation is not enabled. Instead of unconditionally warning when the -fsycl-fp64-conv-emu flag is unsupported, the warning is now only shown when the flag is actually needed. The flag is now conditionally applied only when building for specific targets (DG2/ATS-M) that require FP64 emulation.

Key Changes:

  • Move FP64 conversion emulation flag from global to target-specific application
  • Show unsupported flag warning only when the flag would have been used
  • Apply -fsycl-fp64-conv-emu conditionally based on AOT target architecture

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@guangyey guangyey added this pull request to the merge queue Oct 16, 2025
Merged via the queue into main with commit f8b860e Oct 16, 2025
22 of 24 checks passed
@guangyey guangyey deleted the guangyey/fix branch October 16, 2025 01:29
mengfei25 pushed a commit that referenced this pull request Oct 16, 2025
# Motivation
I would like to clarify that, according to the [FP64 Partial Emulation
Proposal](https://intel.sharepoint.com/:w:/s/MLTSHdGPU/EaroFZY371hOqNL9182g2_EBOe83qGYTriAavPB6WTWXYg?e=XSRnKt),
the SYCL compiler and IGC only perform FP64 conversion on the DG2 and
ATS-M architectures, and this is only available when AOT is enabled.

If AOT is not enabled, many warnings like the following will be emitted:
```bash
icx: warning: '-fsycl-fp64-conv-emu' option is supported only for AOT compilation of Intel GPUs. It will be ignored for other targets
```

To avoid these warnings, the `-fsycl-fp64-conv-emu` flag should only be
added when AOT is enabled for the specific target architectures.
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.

2 participants