Skip to content

Conversation

@qishilu
Copy link
Contributor

@qishilu qishilu commented Dec 23, 2025

MSCCLPP_DEVICE_HIP is undefined because it is defined in device.hpp

@Binyang2014
Copy link
Contributor

Thanks for the contribution, could you tell us which test is hang. Then we could verify in our env

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a bug where the MSCCLPP_DEVICE_HIP preprocessor macro was undefined in semaphore.cc, causing incorrect memory allocation behavior on ROCm platforms. The fix replaces it with the standard HIP platform macro __HIP_PLATFORM_AMD__.

Key Changes:

  • Replaced MSCCLPP_DEVICE_HIP with __HIP_PLATFORM_AMD__ in semaphore.cc to fix undefined macro usage

@Binyang2014 Binyang2014 requested a review from chhwang December 24, 2025 01:11
@Binyang2014
Copy link
Contributor

Binyang2014 commented Dec 24, 2025

Did a simple test in our env. I think you are right.

Copy link
Contributor

@chhwang chhwang left a comment

Choose a reason for hiding this comment

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

A better way is including <mscclpp/device.hpp> here but this is fine.

@Binyang2014 Binyang2014 merged commit b2d96e8 into microsoft:main Dec 24, 2025
20 checks passed
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