Skip to content

Conversation

@minsii
Copy link

@minsii minsii commented May 17, 2022

Summary:
At OSS gloo build time, all cu files are hipified by cmake for AMD build.
The hipified source files are in cmake build directory which can be different
from the original source path. Thus, we should always use HIPIFY_OUTPUT_DIR
rather than CMAKE_CURRENT_SOURCE_DIR to include these files.

HIPIFY_OUTPUT_DIR is defined by Hipify.cmake.

This diff fixes failure captured by OSS pytorch when trying to update gloo commit hash: https://github.com/pytorch/pytorch/runs/6379162434?check_suite_focus=true

Particular error:

 *** No rule to make target '../third_party/gloo/gloo/nccl/nccl.hip', needed by 'third_party/gloo/gloo/CMakeFiles/gloo_hip.dir/nccl/gloo_hip_generated_nccl.hip.o'.  Stop.

Differential Revision: D36457504

Summary:
At OSS gloo build time, all cu files are hipified by cmake for AMD build.
The hipified source files are in cmake build directory which can be different
from the original source path. Thus, we should always use HIPIFY_OUTPUT_DIR
rather than CMAKE_CURRENT_SOURCE_DIR to include these files.

HIPIFY_OUTPUT_DIR is defined by Hipify.cmake.

This diff fixes failure captured by OSS pytorch when trying to update gloo commit hash: https://github.com/pytorch/pytorch/runs/6379162434?check_suite_focus=true

Particular error:
```
 *** No rule to make target '../third_party/gloo/gloo/nccl/nccl.hip', needed by 'third_party/gloo/gloo/CMakeFiles/gloo_hip.dir/nccl/gloo_hip_generated_nccl.hip.o'.  Stop.
```

Differential Revision: D36457504

fbshipit-source-id: 557c93c74cc460d0fe343733e3de99c9842449d5
@facebook-github-bot
Copy link

This pull request was exported from Phabricator. Differential Revision: D36457504

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants