I followed the instructions given here
http://pocl.sourceforge.net/docs/html/hsa.html#installing-prerequisite-software
to build POCL with HSA support.
I was able to build & install "pocl-standalone" and a couple of libraries
as follows:
libOpenCL.a libOpenCL.la libOpenCL.so libOpenCL.so.1 libOpenCL.so.1.6.0
libpocl.a libpocl.la libpocl.so libpocl.so.1 libpocl.so.1.6.0
libpoclu.a libpoclu.la libpoclu.so libpoclu.so.1 libpoclu.so.1.6.0
pocl
So I assume the build was successful?
But when I hit an error when compiling example1. I have attached the error
messages.
It seems either libpocl was not built properly or there was something when
generating the makefile.
Could somebody shed some lights?
Cheers,
Zheng
==============================================================
/bin/bash ../../libtool --tag=CC --mode=link gcc -pthread -g -O2
-L/opt/hsa/lib -o example1 example1-example1.o example1-example1_exec.o
/home/zwang3/workspace/dividend/pocl/build/lib/CL/libpocl.la
../../lib/poclu/libpoclu.la
libtool: link: gcc -pthread -g -O2 -o .libs/example1 example1-example1.o
example1-example1_exec.o -L/opt/hsa/lib
/home/zwang3/workspace/dividend/pocl/build/lib/CL/.libs/libpocl.so
../../lib/poclu/.libs/libpoclu.so -pthread -Wl,-rpath -W
l,/home/zwang3/workspace/dividend/build/pocl_bin/lib
/home/zwang3/workspace/dividend/pocl/build/lib/CL/.libs/libpocl.so:
undefined reference to `HSAIL_ASM::OperandOperandList::initBrig()'
/home/zwang3/workspace/dividend/pocl/build/lib/CL/.libs/libpocl.so:
undefined reference to `HSAIL_ASM::Validator::validate(bool) const'
/home/zwang3/workspace/dividend/pocl/build/lib/CL/.libs/libpocl.so:
undefined reference to `HSAIL_ASM::InstBasic::initBrig()'
/home/zwang3/workspace/dividend/pocl/build/lib/CL/.libs/libpocl.so:
undefined reference to `HSAIL_ASM::Disassembler::run(std::ostream&) const'
/home/zwang3/workspace/dividend/pocl/build/lib/CL/.libs/libpocl.so:
undefined reference to `HSAIL_ASM::BrigIO::save(HSAIL_ASM::BrigContainer&,
int, HSAIL_ASM::WriteAdapter&)'
/home/zwang3/workspace/dividend/pocl/build/lib/CL/.libs/libpocl.so:
undefined reference to `HSAIL_ASM::registeredExtensions()'
/home/zwang3/workspace/dividend/pocl/build/lib/CL/.libs/libpocl.so:
undefined reference to `HSAIL_ASM::DirectiveControl::initBrig()'
/home/zwang3/workspace/dividend/pocl/build/lib/CL/.libs/libpocl.so:
undefined reference to `HSAIL_ASM::Validator::~Validator()'
/home/zwang3/workspace/dividend/pocl/build/lib/CL/.libs/libpocl.so:
undefined reference to `HSAIL_ASM::Brigantine::createRef(HSAIL_ASM::SRef
const&, HSAIL_ASM::OperandRegister, long, bool, HSAIL_ASM::SourceInfo
const*)'
/home/zwang3/workspace/dividend/pocl/build/lib/CL/.libs/libpocl.so:
undefined reference to `HSAIL_ASM::InstMod::initBrig()'
/home/zwang3/workspace/dividend/pocl/build/lib/CL/.libs/libpocl.so:
undefined reference to
`HSAIL_ASM::Brigantine::createOperandReg(HSAIL_ASM::SRef const&,
HSAIL_ASM::SourceInfo const*)'
/home/zwang3/workspace/dividend/pocl/build/lib/CL/.libs/libpocl.so:
undefined reference to `HSAIL_ASM::OperandString::initBrig()'
/home/zwang3/workspace/dividend/pocl/build/lib/CL/.libs/libpocl.so:
undefined reference to `HSAIL_ASM::InstAtomic::initBrig()'
/home/zwang3/workspace/dividend/pocl/build/lib/CL/.libs/libpocl.so:
undefined reference to `setupterm'
/home/zwang3/workspace/dividend/pocl/build/lib/CL/.libs/libpocl.so:
undefined reference to `HSAIL_ASM::Brigantine::addExtension(char const*,
HSAIL_ASM::SourceInfo const*)'
/home/zwang3/workspace/dividend/pocl/build/lib/CL/.libs/libpocl.so:
undefined reference to `HSAIL_ASM::InstMem::initBrig()'
/home/zwang3/workspace/dividend/pocl/build/lib/CL/.libs/libpocl.so:
undefined reference to `HSAIL_ASM::isArrayType(unsigned int)'
/home/zwang3/workspace/dividend/pocl/build/lib/CL/.libs/libpocl.so:
undefined reference to
`HSAIL_ASM::Brigantine::startArgScope(HSAIL_ASM::SourceInfo const*)'
/home/zwang3/workspace/dividend/pocl/build/lib/CL/.libs/libpocl.so:
undefined reference to `HSAIL_ASM::InstSegCvt::initBrig()'
/home/zwang3/workspace/dividend/pocl/build/lib/CL/.libs/libpocl.so:
undefined reference to `HSAIL_ASM::Brigantine::addLabel(HSAIL_ASM::SRef
const&, HSAIL_ASM::SourceInfo const*)'
/home/zwang3/workspace/dividend/pocl/build/lib/CL/.libs/libpocl.so:
undefined reference to `HSAIL_ASM::num2align(unsigned long)'
/home/zwang3/workspace/dividend/pocl/build/lib/CL/.libs/libpocl.so:
undefined reference to `compress2'
--
Cheers,
Zheng
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
pocl-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pocl-devel