Skip to content

ROCm contributions week 29#9653

Closed
iotamudelta wants to merge 144 commits intopytorch:masterfrom
ROCm:week29
Closed

ROCm contributions week 29#9653
iotamudelta wants to merge 144 commits intopytorch:masterfrom
ROCm:week29

Conversation

@iotamudelta
Copy link
Contributor

In this changeset:

  • improvements to hipify-python.py
  • marking unit tests broken for ROCm
  • reducing the number of jobs for the built to avoid out of memory issues
  • switch to Thrust/cub-hip master for the CI

iotamudelta and others added 30 commits June 5, 2018 16:37
Bring our fork up to date.
Merge from upstream master into our fork.
Update the copyright dates and reflect the reality that this has
been a collaborative effort between AMD and Facebook in the last
years.
Script is now included in pytorch source.
first round of changes to update PR
This reverts commit 864dbe4.
next round of fixes to address comments
After discussion in review, disable flake8 on pyHIPIFY for now.

# This environment variable enabled HCC Optimizations that speed up the linking stage.
# https://github.com/RadeonOpenCompute/hcc#hcc-with-thinlto-linking
# export KMTHINLTO=1

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

aten_set_target_props(caffe2_hip)
ENDIF()
# Set standard properties on the target
aten_set_target_props(caffe2_hip)

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

@iotamudelta
Copy link
Contributor Author

resolved merge conflicts. @jithunnair-amd could you review to ensure I didn't screw anything up? thanks!

@jithunnair-amd
Copy link
Collaborator

@iotamudelta LGTM

@zou3519 zou3519 added the ready for review (this tag is deprecated) All PRs are ready for review unless they are draft, WIP, or have undismissed requested changes label Jul 31, 2018
@iotamudelta
Copy link
Contributor Author

@pytorchbot retest this please

git clone --recursive https://github.com/ROCmSoftwarePlatform/Thrust.git /data/Thrust
rm -rf /data/Thrust/thrust/system/cuda/detail/cub-hip
git clone --recursive https://github.com/ROCmSoftwarePlatform/cub-hip.git /data/Thrust/thrust/system/cuda/detail/cub-hip
cd /data/Thrust/thrust/system/cuda/detail/cub-hip && git checkout hip_port_1.7.4_caffe2 && cd -

This comment was marked as off-topic.

This comment was marked as off-topic.

Copy link
Contributor

@ezyang ezyang left a comment

Choose a reason for hiding this comment

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

seems basically reasonable, but I see a Docker image change. Someone will need to deploy that change.

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

ezyang has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@ezyang
Copy link
Contributor

ezyang commented Aug 1, 2018

This needs a merge with master before I can land

@iotamudelta
Copy link
Contributor Author

@jithunnair-amd I've merged again, could you check again w/ a second pair of eyes? Thanks!

set(PYTORCH_FOUND_HIP TRUE)

### Remove setting of Flags when FindHIP.CMake PR #558 is accepted.###
# https://github.com/ROCm-Developer-Tools/HIP/pull/558 #

This comment was marked as off-topic.

Copy link
Collaborator

@jithunnair-amd jithunnair-amd left a comment

Choose a reason for hiding this comment

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

SFSG

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

ezyang has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

zdevito pushed a commit to zdevito/ATen that referenced this pull request Aug 2, 2018
Summary:
In this changeset:
* improvements to `hipify-python.py`
* marking unit tests broken for ROCm
* reducing the number of jobs for the built to avoid out of memory issues
* switch to Thrust/cub-hip master for the CI
Pull Request resolved: pytorch/pytorch#9653

Differential Revision: D9117791

Pulled By: ezyang

fbshipit-source-id: a6c3c7b81f2bda9825974bf9bf89a97767244352
goodlux pushed a commit to goodlux/pytorch that referenced this pull request Aug 15, 2018
Summary:
In this changeset:
* improvements to `hipify-python.py`
* marking unit tests broken for ROCm
* reducing the number of jobs for the built to avoid out of memory issues
* switch to Thrust/cub-hip master for the CI
Pull Request resolved: pytorch#9653

Differential Revision: D9117791

Pulled By: ezyang

fbshipit-source-id: a6c3c7b81f2bda9825974bf9bf89a97767244352
@jithunnair-amd jithunnair-amd deleted the week29 branch September 25, 2025 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

open source ready for review (this tag is deprecated) All PRs are ready for review unless they are draft, WIP, or have undismissed requested changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants