<div dir="ltr"><div><div>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 (<a href="http://web.cse.ohio-state.edu/~pouchet/software/polybench/GPU/">http://web.cse.ohio-state.edu/~pouchet/software/polybench/GPU/</a>) executing the following commands:<br><br>/opt/clang+llvm-3.7.1-x86_64-linux-gnu-ubuntu-15.10/bin/clang -Dcl_clang_storage_class_specifiers -isystem /opt/libclc/include -include clc/clc.h -target amdgcn -S -emit-llvm -xcl -o gemm.ll <a href="http://gemm.cl">gemm.cl</a><br><br>/opt/clang-3.9/bin/llvm-link gemm.ll /opt/libclc/lib/clc/verde-amdgcn--.bc -o gemm.linked.bc<br><br>/opt/clang-3.9/bin/clang -target amdgcn gemm.linked.bc -S -o gemm.verde.s<br><br>Now what should I do with the assembly file (i.e., 'gemm.verde.s')?<br>Can I use an assembler such as GCNASM (<a href="https://github.com/balidani/gcnasm">https://github.com/balidani/gcnasm</a>) or CLRadeonExtender (<a href="http://clrx.nativeboinc.org/">http://clrx.nativeboinc.org/</a>) to generate a binary compatible with AMD Catalyst?<br></div><div>I tried using both assemblers and they both complained with many of the instructing generated by Clang.<br><br></div><div>Can you give me some pointers on how to progress?<br><br><br></div><div>Ricardo<br></div></div></div>