Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 905325 - sci-libs/pytorch-2.0.0 request for rocm use flag, to build for AMD's rocm runtime
Summary: sci-libs/pytorch-2.0.0 request for rocm use flag, to build for AMD's rocm run...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal enhancement (vote)
Assignee: Tupone Alfredo
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-29 20:39 UTC by Lorenzo Bertini
Modified: 2024-01-25 06:46 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lorenzo Bertini 2023-04-29 20:39:27 UTC
Basically this https://bugs.gentoo.org/705712 (I'm not the requester) but for pytorch. Thanks in advance
Comment 1 Tupone Alfredo gentoo-dev 2023-05-07 13:28:18 UTC
patches (or pull request are very welcome)
Comment 2 Lorenzo Bertini 2023-10-16 12:37:18 UTC
(In reply to Tupone Alfredo from comment #1)
> patches (or pull request are very welcome)

Sorry for the long delay.

A quick look here https://github.com/pytorch/pytorch#from-source reveals that one just needs to run tools/amd_build/build_amd.py to hipify the build. However, the script operates on caffe2, which we package separately.

Could you kindly point me in the right direction?

Many thanks and best wishes
Comment 3 bratzmeister 2024-01-06 19:18:29 UTC
please do this for current version (too). pytorch >=2.0 should work with ROCm 5.7.1 https://wiki.gentoo.org/wiki/ROCm and has official upstream support, like Lorenzo mentioned.
Currently I'm handicapped as the official binaries don´t support my GPU and gentoo doesnt incorporate pytorch with rocm although it has both in portage
Comment 4 Lorenzo Bertini 2024-01-14 15:09:55 UTC
Maybe unrelated, but having libcaffe2 as separate package means I can update pytorch and not caffe2 to have mismatched versions. My pytorch real version is then incorrect. What was the reationale behind this separation?
Comment 5 bratzmeister 2024-01-14 23:48:22 UTC
there is a lot of work going on for ROCm 5.7.1 in https://github.com/gentoo/gentoo/pull/33400. Possibly it will be ready to be used with pytorch after this PR