[Libclc-dev] Fwd: GFX1010 support

Aaron Watry via Libclc-dev libclc-dev at lists.llvm.org
Mon Jul 6 14:51:37 PDT 2020

Sorry Jan (and everyone),

I forgot to hit reply-all when I sent the attached earlier.


---------- Forwarded message ---------
From: Aaron Watry <awatry at gmail.com>
Date: Mon, Jul 6, 2020 at 1:31 PM
Subject: Re: [Libclc-dev] GFX1010 support
To: Filipe Laíns <lains at archlinux.org>

o you have the ability to build libclc from source from a checkout of
the LLVM repository?
The repository is here: https://github.com/llvm/llvm-project.git

You'd only need to build/install the libclc/ sub-project to test any
prospective patches (see attached), not the full LLVM project.

I've attached a basic patch that adds some AMDGPU subtargets that were
missing along with the LLVM version they were added in.

In your case, as long as you are building libclc against LLVM 9.0 or
higher, it should automatically add in support for your GFX1010 chip
when building. Hopefully that'll be enough to get you through clinfo.
Not sure if anything more complicated will be required for your chip,
but this should get us started.

If you've got cmake/make/llvm/clang installed, clone the LLVM
repository I listed above, then:
cd ${LLVM_SRC_ROOT}/libclc
mkdir build
cd build && cmake ../
make -j && sudo make install

You could probably skip the `make install` part and copy the one file
you're interested in manually, but I'll leave that to you to decide
how much custom stuff you want installed on your system :)

Let me know if this works/doesn't-work.


On Mon, Jul 6, 2020 at 10:47 AM Filipe Laíns via Libclc-dev
<libclc-dev at lists.llvm.org> wrote:
> Hi,
> I would like to query about GFX1010 (Navi 10, RX5700 XT) support. I
> understand it is not supported at the moment, what kind of work would
> need to be done for this? I would like to help if I can, but I am not
> sure how to proceed or even if I have the required background.
> $ clinfo
> ...
> fatal error: cannot open file '/usr/lib/clc/gfx1010-amdgcn-mesa-mesa3d.bc': No such file or directory
> ...
> Cheers,
> Filipe Laíns
> _______________________________________________
> Libclc-dev mailing list
> Libclc-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/libclc-dev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-libclc-Add-several-AMDGPU-subtargets.patch
Type: application/x-patch
Size: 1885 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libclc-dev/attachments/20200706/9479219a/attachment.bin>

More information about the Libclc-dev mailing list