<div dir="ltr"><div dir="ltr">Hi,<br><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jul 6, 2020 at 5:51 PM Aaron Watry via Libclc-dev <<a href="mailto:libclc-dev@lists.llvm.org">libclc-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Sorry Jan (and everyone),<br>
<br>
I forgot to hit reply-all when I sent the attached earlier.<br>
<br>
--Aaron<br>
<br>
---------- Forwarded message ---------<br>
From: Aaron Watry <<a href="mailto:awatry@gmail.com" target="_blank">awatry@gmail.com</a>><br>
Date: Mon, Jul 6, 2020 at 1:31 PM<br>
Subject: Re: [Libclc-dev] GFX1010 support<br>
To: Filipe Laíns <<a href="mailto:lains@archlinux.org" target="_blank">lains@archlinux.org</a>><br>
<br>
<br>
o you have the ability to build libclc from source from a checkout of<br>
the LLVM repository?<br>
The repository is here: <a href="https://github.com/llvm/llvm-project.git" rel="noreferrer" target="_blank">https://github.com/llvm/llvm-project.git</a><br>
<br>
You'd only need to build/install the libclc/ sub-project to test any<br>
prospective patches (see attached), not the full LLVM project.<br>
<br>
I've attached a basic patch that adds some AMDGPU subtargets that were<br>
missing along with the LLVM version they were added in.<br></blockquote><div><br></div><div>thanks! Can you group those if statements by LLVM version?<br>Keep the comments and `set' statements, just avoid multiple ifs.</div><div>with that change:<br><br>Reviewed-by: Jan Vesely <<a href="mailto:jan.vesely@rutgers.edu">jan.vesely@rutgers.edu</a>><br><br>Jan<br> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
In your case, as long as you are building libclc against LLVM 9.0 or<br>
higher, it should automatically add in support for your GFX1010 chip<br>
when building. Hopefully that'll be enough to get you through clinfo.<br>
Not sure if anything more complicated will be required for your chip,<br>
but this should get us started.<br>
<br>
If you've got cmake/make/llvm/clang installed, clone the LLVM<br>
repository I listed above, then:<br>
cd ${LLVM_SRC_ROOT}/libclc<br>
mkdir build<br>
cd build && cmake ../<br>
make -j && sudo make install<br>
<br>
You could probably skip the `make install` part and copy the one file<br>
you're interested in manually, but I'll leave that to you to decide<br>
how much custom stuff you want installed on your system :)<br>
<br>
Let me know if this works/doesn't-work.<br>
<br>
--Aaron<br>
<br>
On Mon, Jul 6, 2020 at 10:47 AM Filipe Laíns via Libclc-dev<br>
<<a href="mailto:libclc-dev@lists.llvm.org" target="_blank">libclc-dev@lists.llvm.org</a>> wrote:<br>
><br>
> Hi,<br>
><br>
> I would like to query about GFX1010 (Navi 10, RX5700 XT) support. I<br>
> understand it is not supported at the moment, what kind of work would<br>
> need to be done for this? I would like to help if I can, but I am not<br>
> sure how to proceed or even if I have the required background.<br>
><br>
> $ clinfo<br>
> ...<br>
> fatal error: cannot open file '/usr/lib/clc/gfx1010-amdgcn-mesa-mesa3d.bc': No such file or directory<br>
> ...<br>
><br>
> Cheers,<br>
> Filipe Laíns<br>
> _______________________________________________<br>
> Libclc-dev mailing list<br>
> <a href="mailto:Libclc-dev@lists.llvm.org" target="_blank">Libclc-dev@lists.llvm.org</a><br>
> <a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/libclc-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/libclc-dev</a><br>
_______________________________________________<br>
Libclc-dev mailing list<br>
<a href="mailto:Libclc-dev@lists.llvm.org" target="_blank">Libclc-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/libclc-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/libclc-dev</a><br>
</blockquote></div></div>