Skip to content

Conversation

@alextmagro
Copy link

@alextmagro alextmagro commented Oct 21, 2025

Motivation

TE unit tests use std:: math functions in files combining host/device code, transpilations cause issues
https://ontrack-internal.amd.com/browse/SWDEV-552194

Technical Details

Added --no-math-replace flag to hipify-torch to allow users to skip the transpilation

Test Plan

Tested that all std:: math functions work on device as is, although performance has not been tested. TE unit tests ran.

Test Result

TE unit tests ran without transpilation successfully. All functions exist in std for device.

Submission Checklist

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.

[TE] Fix issue with hipify-torch mapping std::max to ::max

1 participant