Hello,

I'm attempting to cross compile an LLVM-less build of pocl to run on a
zynq (ARM Cortex A9 + FPGA) platform and am following the instruction
at

http://pocl.sourceforge.net/docs/html/pocl_binary.html#cross-compile-pocl-llvm-less-build.
 


Step 1 at that page says to build pocl with LLVM, which I am attempting 
to do with cmake. From the pocl source tree:

mkdir build
cd build
cmake -DKERNELLIB_HOST_CPU_VARIANTS=cortex-a9 ..

The cmake command is successful, but make itself gives the following
error:

Scanning dependencies of target patched_cl_hpp
[  0%] Patching cl.hpp
[  1%] Built target patched_cl_hpp
Scanning dependencies of target kernel_host_cortex-a9
[  1%] Building CL to LLVM bitcode 
./pocl/build/lib/kernel/host/cortex-a9/svm_atomics.cl.bc
error: unknown target CPU 'cortex-a9'
make[2]: *** [lib/kernel/host/cortex-a9/svm_atomics.cl.bc] Error 1
make[1]: *** [lib/kernel/host/CMakeFiles/kernel_host_cortex-a9.dir/all] 
Error 2
make: *** [all] Error 2

Am I correct in assuming that this is a problem with clang failing to
compile the built-in kernels for the target (cortex-a9 in this case)?
If so, any ideas on how to resolve this?

I am using LLVM + Clang v3.9.0 which I compiled from sources on my
Ubuntu 14.04 system.

Thanks,

Graham

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
pocl-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pocl-devel

Reply via email to