[Libclc-dev] AMD and libclc (progress)

Ricardo Nobre via Libclc-dev libclc-dev at lists.llvm.org
Tue Apr 26 12:57:30 PDT 2016

I compiled and installed the latest 'libclc' from the repository and I
successfully generated AMD GCN ASM from the GEMM kernel of the
polybench-gpu benchmark (
http://web.cse.ohio-state.edu/~pouchet/software/polybench/GPU/) executing
the following commands:

-Dcl_clang_storage_class_specifiers -isystem /opt/libclc/include -include
clc/clc.h -target amdgcn -S -emit-llvm -xcl -o gemm.ll gemm.cl

/opt/clang-3.9/bin/llvm-link gemm.ll /opt/libclc/lib/clc/verde-amdgcn--.bc
-o gemm.linked.bc

/opt/clang-3.9/bin/clang -target amdgcn gemm.linked.bc -S -o gemm.verde.s

Now what should I do with the assembly file (i.e., 'gemm.verde.s')?
Can I use an assembler such as GCNASM (https://github.com/balidani/gcnasm)
or CLRadeonExtender (http://clrx.nativeboinc.org/) to generate a binary
compatible with AMD Catalyst?
I tried using both assemblers and they both complained with many of the
instructing generated by Clang.

Can you give me some pointers on how to progress?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/libclc-dev/attachments/20160426/da8bf35d/attachment.html>

More information about the Libclc-dev mailing list