Skip to content

Conversation

@mairooni
Copy link
Collaborator

@mairooni mairooni commented Dec 4, 2025

Description

This PR solves an error which was occurring during the conversion from half-float to float values. Specifically, this PR addresses the case where the half-float value to be converted is stored in a PhiNode. In this case, the auxiliary HalfFloatPlaceholderNode is removed and the FloatConvert node of Graal is replaced with the the backend-specific conversion node [OCL/PTX/SPIRV]ConvertHalfToFloat.

Backend/s tested

Mark the backends affected by this PR.

  • OpenCL
  • PTX
  • SPIRV

OS tested

Mark the OS where this PR is tested.

  • Linux
  • OSx
  • Windows

Did you check on FPGAs?

If it is applicable, check your changes on FPGAs.

  • Yes
  • No

How to test the new patch?

Run tornado-test -V uk.ac.manchester.tornado.unittests.foundation.TestHalfFloats#testMatrixVectorHalfFloatOptimized

@mairooni mairooni self-assigned this Dec 4, 2025
@mairooni mairooni added compiler fix Provides a fix labels Dec 4, 2025
Copy link
Member

@mikepapadim mikepapadim left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @mairooni

@mikepapadim mikepapadim merged commit 820d5dd into beehive-lab:develop Dec 4, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

compiler fix Provides a fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants