Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added __HIP_PLATFORM_AMD__=1 for non JIT build #4585

Merged
merged 7 commits into from
Nov 8, 2023

Conversation

rraminen
Copy link
Contributor

This PR is required in addition to #4539 to define HIP_PLATFORM_AMD on ROCm.

This is required for DeepSpeed non-JIT build. For JIT build we have #4570.

This is required for DeepSpeed extensions build in those docker images with PyTorch built before pytorch/pytorch#111975.

cc: @jeffdaily @jithunnair-amd

@@ -614,6 +614,9 @@ def builder(self):
if not self.build_for_cpu and self.enable_bf16:
compile_args['cxx'].append("-DBF16_AVAILABLE")

if self.is_rocm_pytorch():
Copy link
Contributor

Choose a reason for hiding this comment

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

@rraminen - do we need both this change and the one in #4570?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

My understanding is that #4585 is for non-JIT builds and #4570 is for JIT builds. So both of them are required. Please correct me if wrong.

@loadams
Copy link
Contributor

loadams commented Oct 31, 2023

The PR failure is not due to changes here, and we will get this merged as we get that other issue solved.

@rraminen
Copy link
Contributor Author

rraminen commented Nov 6, 2023

Hi @loadams, is this PR ready to be merged? Thanks.

@loadams
Copy link
Contributor

loadams commented Nov 6, 2023

Hi @loadams, is this PR ready to be merged? Thanks.

Yes, we've identified a CI issue that's unrelated we are trying to fix, will have this merged right after that.

@loadams loadams added this pull request to the merge queue Nov 8, 2023
Merged via the queue into microsoft:master with commit 0daf7f2 Nov 8, 2023
15 checks passed
mauryaavinash95 pushed a commit to mauryaavinash95/DeepSpeed that referenced this pull request Feb 17, 2024
This PR is required in addition to
microsoft#4539 to define
HIP_PLATFORM_AMD on ROCm.

This is required for DeepSpeed non-JIT build. For JIT build we have
microsoft#4570.

This is required for DeepSpeed extensions build in those docker images
with PyTorch built before
pytorch/pytorch#111975.

cc: @jeffdaily @jithunnair-amd

Co-authored-by: Logan Adams <114770087+loadams@users.noreply.github.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.

None yet

2 participants