Skip to content

Add PyTorch XPU as Target Device#6297

Closed
ekaakurniawan wants to merge 1 commit into
Unity-Technologies:developfrom
ekaakurniawan:develop
Closed

Add PyTorch XPU as Target Device#6297
ekaakurniawan wants to merge 1 commit into
Unity-Technologies:developfrom
ekaakurniawan:develop

Conversation

@ekaakurniawan

Copy link
Copy Markdown
Contributor

Proposed change(s)

Add PyTorch XPU as target device to support Intel Arc GPUs.

Useful links (Github issues, JIRA tickets, ML-Agents forum threads etc.)

Steps to Setup Unity Machine Learning Agents Toolkit and PyTorch XPU

Types of change(s)

  • Bug fix
  • New feature
  • Code refactor
  • Breaking change
  • Documentation update
  • Other (please describe)

Checklist

Please advise on adding the test.

  • Added tests that prove my fix is effective or that my feature works
  • Updated the changelog (if applicable)
  • Updated the documentation (if applicable)
  • Updated the migration guide (if applicable)

Other comments

 - To support Intel Arc GPUs.
 - Set default device to XPU. Otherwise some are still on CPU.
 - Set default data type to float32. Recommended for GPU is float16 but other Torch variables are still in float32.
@CLAassistant

CLAassistant commented Jun 5, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@montplaisir

Copy link
Copy Markdown
Contributor

Thank you for your submission!
Your changes were covered by PR #6303.

montplaisir added a commit that referenced this pull request Jun 17, 2026
…raining devices. (#6303)

Port these PRs to current code:

#6297 Add PyTorch XPU as Target Device
#6243 Fix: data on both cuda:0 and cuda:1 when using --torch-device cuda:1
#6225 Release 22/inconsistent device tensor action in trainers [Don't Merge]
#6094 add support for mac m1/m2 chips mps gpu

Co-authored-by: @ekaakurniawan Eka Antonius Kurniawan <eka.a.kurniawan@gmail.com>
Co-authored-by: @robinDLFM Robin De Lissnyder
Co-authored-by: @Jkho80 
Co-authored-by: @zyunlongz Yunlong Zuo <zyunlongz@gmail.com>
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.

3 participants