Hi,
If i run
cd lib/kernel/arm/ && make,
The errors will be as below
/usr/local/bin/llvm-as -o barrier.bc ./../barrier.ll
/usr/local/bin/clang -emit-llvm -c -target -o get_work_dim.bc -x c
./../get_work_dim.c -include ../../../include/arm/types.h
clang: error: no such file or directory: 'get_work_dim.bc'
make: *** [get_work_dim.bc] 错误 1
Then I manually modified the lib/kernel/arm/Makefile, and many bc files will be
generated.
Remove '-target ${KERNEL_TARGET}' from Makefile.
%.bc: %.c ../../../include/${TARGET_DIR}/types.h
/usr/local/bin/clang -emit-llvm -c -target ${KERNEL_TARGET} -o $@ -x c
$< -include ../../../include/${TARGET_DIR}/types.h
%.bc: %.cl ../../../include/${TARGET_DIR}/types.h ../../../include/_kernel.h
/usr/local/bin/clang -emit-llvm -c -target ${KERNEL_TARGET} -o $@ -x cl
$< -include ../../../include/${TARGET_DIR}/types.h \
-include ${abs_top_srcdir}/include/_kernel.h
However, when I built OpenCL example, some errors occurred.
/usr/local/bin/llvm-link: /usr/local/lib/pocl/arm/kernel-.bc: error: Invalid
SWITCH record
/usr/local/bin/llvm-link: error loading file
'/usr/local/lib/pocl/arm/kernel-.bc'
/usr/local/bin/opt: /tmp/poclMBy0A3/pthread/dot_product/kernel_linked.bc:
error: Could not open input file: No such file or directory
ERROR
How to fix the ' error: Invalid SWITCH record'?
Thanks,
Guanglei
|
Re: [pocl-devel] all .cl files in pocl-src/lib/kernel were not built atfter
making command
From: Kalle Raiskila <kalle.raiskila@no...> - 2013-03-02 03:46
|
|
On 01/03/13 03:55, ext 高光磊 wrote:
> Hi,
>
>
> I got the four versions of pocl(v590,v617, v623, v625), cross built
> them on x86-Gentoo for ARM board,
In cross building pocl you are, I guess, the first to do so :) At least
for the "basic" and "pthreads" devices.
> and all the .so files can be
> generated for the four versions. However, I found that all the the
> .cl files (in pocl/lib/kernel) were not built after command: 'make'.
> How to fix the problem?
Is there any error messages?
Also, if you run
cd lib/kernel/arm/ && make
what happens?
Note that the .bc files built from the kernel .cl ones are not directly
in pocl/lib/kernel, but in the platform-relevant subdirectory there.
kalle
--
But beware the debugger. Dark side of the source it is.
If once you start down the dark path, forever will it dominate
your destiny. Consume you it will.
|------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
pocl-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pocl-devel