[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 (
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
/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...
More information about the Libclc-dev