Skip to content

Conversation

@dyniols
Copy link
Contributor

@dyniols dyniols commented Sep 3, 2025

This PR removes SYCL_USE_NATIVE_FP_ATOMICS macro.
It's removed because we don't support FPGA anymore and macro was defined for all target except FPGA.

if (Triple.isNVPTX() || Triple.isAMDGPU() ||
(Triple.isSPIR() && SubArch != llvm::Triple::SPIRSubArch_fpga) ||
Triple.isNativeCPU())
Builder.defineMacro("SYCL_USE_NATIVE_FP_ATOMICS");

@dyniols dyniols changed the title [SYCL] Removed SYCL_USE_NATIVE_FP_ATOMICS macro [SYCL] Remove SYCL_USE_NATIVE_FP_ATOMICS macro Sep 3, 2025
@dyniols dyniols marked this pull request as ready for review September 3, 2025 17:29
@dyniols dyniols requested review from a team as code owners September 3, 2025 17:29
@dyniols
Copy link
Contributor Author

dyniols commented Sep 3, 2025

@bader FYI

@aelovikov-intel
Copy link
Contributor

+ @steffenlarsen

Copy link
Contributor

@premanandrao premanandrao left a comment

Choose a reason for hiding this comment

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

FE changes LGTM

Copy link
Contributor

@steffenlarsen steffenlarsen left a comment

Choose a reason for hiding this comment

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

const llvm::Triple &Triple = TI.getTriple();
const llvm::Triple::SubArchType SubArch = Triple.getSubArch();
if (Triple.isNVPTX() || Triple.isAMDGPU() ||
(Triple.isSPIR() && SubArch != llvm::Triple::SPIRSubArch_fpga) ||
Copy link
Contributor

Choose a reason for hiding this comment

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

Makes me wonder if there is more llvm::Triple::SPIRSubArch_fpga-specific behavior in the frontend/driver that we can get rid of.

@steffenlarsen steffenlarsen merged commit e7a74d5 into intel:sycl Sep 4, 2025
27 checks passed
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.

5 participants