Skip to content

Undefined GLOO_USE_ROCM error together with HIP #506

@geraldog

Description

@geraldog

#if !GLOO_USE_CUDA

This line I believe is wrong and should be #if !defined(GLOO_USE_CUDA) instead.

The problem manifests when compiling PyTorch with HIP backend. Compiler spits out that GLOO_USE_ROCM isn't defined when obviously it is, because it is defined to 1 and ! negates that 1 with a 0 which leads to a false evaluation.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions