Replies: 23 comments 10 replies
-
That's exactly what I thought, otherwise everything would become irritating. |
Beta Was this translation helpful? Give feedback.
-
Hi there, So my comments on this: targeting OpenCL only at first seems a good idea to start. |
Beta Was this translation helpful? Give feedback.
-
Just an update, |
Beta Was this translation helpful? Give feedback.
-
@acxz : That's great news!
I configured
and can build diff --git a/rocm-device-libs/PKGBUILD b/rocm-device-libs/PKGBUILD
index 9ae77c4..2cd42cf 100644
--- a/rocm-device-libs/PKGBUILD
+++ b/rocm-device-libs/PKGBUILD
@@ -13,9 +13,10 @@ sha256sums=('dce3a4ba672c4a2da4c2260ee4dc96ff6dd51877f5e7e1993cb107372a35a378')
_dirname="$(basename "$url")-$(basename "${source[0]}" .tar.gz)"
build() {
- CC=/opt/rocm/llvm/bin/clang \
+ CC=/usr/bin/clang \
cmake -DCMAKE_INSTALL_PREFIX=/opt/rocm \
- -DLLVM_DIR=/opt/rocm/llvm/lib/cmake/llvm \
+ -DLLVM_DIR=/usr/lib/cmake/llvm \
+ -DClang_DIR=/usr/lib/cmake/clang \
"$_dirname"
make
} UPDATE: |
Beta Was this translation helpful? Give feedback.
-
How should we proceed? I suppose that AMD will release ROCm 3.6.0 next week (maybe on Monday?), so should we focus on getting 3.6.0 into [community]? LLVM 11 is scheduled for August 26, so the next step would be to open a feature request on bugs.archlinux.org in order to get AMDGPU support for the Arch |
Beta Was this translation helpful? Give feedback.
-
Did you try with LLVM 11 then? If so I can definitively ask @foutrelis to build AMDGPU target for the next release. |
Beta Was this translation helpful? Give feedback.
-
Yes, it works with LLVM 11. I've updated my comment. |
Beta Was this translation helpful? Give feedback.
-
I see
|
Beta Was this translation helpful? Give feedback.
-
That's interesting. I always thought that one has to explicitly specify AMDGPU. The relevant code to build |
Beta Was this translation helpful? Give feedback.
-
All right, then we just have to wait for LLVM 11 to be released and things can move bits by bits to [community]. I’ll be quite busy when it will land, so hopefully someone else will be interested or it will have to wait a bit. |
Beta Was this translation helpful? Give feedback.
-
Lately other projects have also been taking my attention, but @tpkessler has really stepped up in maintaining and upgrading these packages. I would nominate him, @tpkessler willing, if you guys need a helping hand or someone to maintain these packages over at Due to the complexity of these packages tho, I would like to keep this repo active, so that ROCm users on Arch Linux can easily chip in PRs, report issues, ask for help, etc. If it would be possible to keep the same format that we have right now, but just change the syncing process from the AUR to the |
Beta Was this translation helpful? Give feedback.
-
Thank you for you kind words @acxz, I appreciate it. Of course, I'm willing to help. Our focus should be on the following packages:
They provide everything that is needed to get OpenCL (and HIP ?) started. |
Beta Was this translation helpful? Give feedback.
-
LLVM 11 has been added to [staging]. Please try this first list again it and we will see what can we do. ;) @acxz Mid-term goal for Arch is to move the packages tree to git + GitLab to be able to accept PR from the community. :) But meanwhile we can keep this repo here for sure! |
Beta Was this translation helpful? Give feedback.
-
I can confirm that |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
So now, what packages could we push to community ? |
Beta Was this translation helpful? Give feedback.
-
All but two packages depend on |
Beta Was this translation helpful? Give feedback.
-
ROCm 4.2 has been released for a while and the packages are in a good shape. For OpenCL (the bare minimum for ROCm) we need
It is crucial to include The remaining packages are small (They amount to 124 MiB with For HIP we additionally need
Useful utility packages include
Once we have that, we can include the different libraries from |
Beta Was this translation helpful? Give feedback.
-
Sorry for the delay, apparently missed the notification. I still don’t think having |
Beta Was this translation helpful? Give feedback.
-
Hey @ArchangeGabriel, thank you for coming back to this issue!
I see. That's indeed a problem.
Yes, I agree. Currently, this is not possible as many of ROCm's (HIP or OpenMP offloading) features depend on |
Beta Was this translation helpful? Give feedback.
-
Hey, LLVM recently updated to 13.0.0. Are there still any issues with building the packages? |
Beta Was this translation helpful? Give feedback.
-
Not for |
Beta Was this translation helpful? Give feedback.
-
Finally blender supports rocm, it should be great for one of you to apply as Trusted User, so archlinuix packages will be available in our repo. I think the priority is to have rocm merged, even if it results in duplicated LLVM - something we can't avoid for now. Feel free to apply and/or comment OFC. |
Beta Was this translation helpful? Give feedback.
-
With the last package being updated to 3.5.0 yesterday, we should think about how we can get (a part of) the packages into [community]. From our issues tracker I infer that most of the people are interested in two things:
The last point seems to be out of reach for now since it needs most of the ROCm stack which I would not consider stable enough for [community]. But maybe OpenCL could find its way in there. For this we need at least:
hsakmt-roct
hsa-rocr
rocm-device-libs
comgr
llvm-amdgpu
in this case is only needed to generaterocm-device-libs
. The new backendrocclr
in its current form is a collection of headers and a static library, so we may ship it withrocm-opencl-runtime
like it's presumably done by AMD. In contrast to other packages in this repo the four mentioned above are relatively small. This seems to make them easily maintainable.Once we have this, we can turn to
hip
and try to add it to [community]. At the moment this would mean that we also need to addllvm-amdgpu
to [community] which would mean that twollvm
packages are in the arch repos. In my opinion we'll have to wait for upstream LLVM to catch up with AMD's extensions. Maybe with LLVM 11 we can replacellvm-amdgpu
withllvm
given it is compiled withAMDGPU
as an additional target.What's your opinion? I would also appreciate feedback from @ArchangeGabriel and @lordheavy, who already contributed to this repo.
Beta Was this translation helpful? Give feedback.
All reactions