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

[WIP] Build PyTorch with ROCm #9312

Draft
wants to merge 1 commit into
base: IB/CMSSW_15_0_X/master
Choose a base branch
from

Conversation

iarspider
Copy link
Contributor

Currently build fails with the following errors:

.../pytorch-2.3.1/torch/csrc/jit/ir/ir.cpp:1188:20: error: 'set_stream' is not a member of 'torch::jit::cuda'; did you mean 'c10::cuda::set_stream'?
.../pytorch-2.3.1/torch/csrc/jit/ir/ir.cpp:1189:20: error: '_set_device' is not a member of 'torch::jit::cuda'; did you mean 'c10::cuda::_set_device'?
.../pytorch-2.3.1/torch/csrc/jit/ir/ir.cpp:1190:20: error: '_current_device' is not a member of 'torch::jit::cuda'; did you mean 'c10::cuda::_current_device'?
.../pytorch-2.3.1/torch/csrc/jit/ir/ir.cpp:1191:20: error: 'synchronize' is not a member of 'torch::jit::cuda'; did you mean 'c10::cuda::synchronize'?

Reported at least twice in pytorch repository: 1, 2, no solution.

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @iarspider for branch IB/CMSSW_14_1_X/master.

@aandvalenzuela, @cmsbuild, @iarspider, @smuzaffar can you please review it and eventually sign? Thanks.
@antoniovilela, @mandrenguyen, @rappoccio, @sextonkennedy you are the release manager for this.
cms-bot commands are listed here

@cmsbuild
Copy link
Contributor

cms-bot internal usage

@iarspider
Copy link
Contributor Author

Applying the suggested change does not help, since all source files are preprocessed - c10::cuda is replaced with c10::hip everywhere. Also, the failing file is built at least twice (or maybe 4 times): see CMakeLists.txt

@iarspider
Copy link
Contributor Author

iarspider commented Jul 23, 2024

There is a newer issue: link, still no real solution.

@iarspider iarspider changed the base branch from IB/CMSSW_14_1_X/master to IB/CMSSW_14_2_X/master August 27, 2024 08:21
@smuzaffar smuzaffar changed the base branch from IB/CMSSW_14_2_X/master to IB/CMSSW_15_0_X/master November 22, 2024 13:34
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.

2 participants