[Debian-med-packaging] Help needed to build libhmsbeagle using OpenCL

Andreas Tille andreas at an3as.eu
Wed Oct 21 13:14:39 UTC 2015


Hi,

I've got the hint that libhmsbeagle only expresses its real performance
advantages when using OpenCL.  I personally do not have any experience
with OpenCL and simply added

	libpoclu-dev,
	ocl-icd-opencl-dev

as Build-Depends as well as using the configure option
"--with-opencl=/usr/include/CL" in libhmsbeagle autoconf.

This builds so far but I'm running in a failure in the test suite.  The
build log says:

make  tinytest
make[4]: Entering directory '/tmp/buildd/libhmsbeagle-2.1.2+20150609/examples/tinytest'
g++ -DHAVE_CONFIG_H -I. -I../../libhmsbeagle  -I../.. -I../.. -D_FORTIFY_SOURCE=2 -I/usr/lib/jvm/java-7-openjdk-amd64/include -I/usr/lib/jvm/java-7-openjdk-amd64/include/linux  -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -c -o tinytest.o tinytest.cpp
/bin/bash ../../libtool  --tag=CXX   --mode=link g++  -g -O2 -fstack-protector-strong -Wformat -Werror=format-security  -Wl,-z,relro -o tinytest tinytest.o ../../libhmsbeagle/libhmsbeagle.la -ldl 
libtool: link: g++ -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z -Wl,relro -o .libs/tinytest tinytest.o  ../../libhmsbeagle/.libs/libhmsbeagle.so -ldl
make[4]: Leaving directory '/tmp/buildd/libhmsbeagle-2.1.2+20150609/examples/tinytest'
make  check-TESTS
make[4]: Entering directory '/tmp/buildd/libhmsbeagle-2.1.2+20150609/examples/tinytest'
make[5]: Entering directory '/tmp/buildd/libhmsbeagle-2.1.2+20150609/examples/tinytest'
FAIL: tinytest
make[6]: Entering directory '/tmp/buildd/libhmsbeagle-2.1.2+20150609/examples/tinytest'
make[6]: Nothing to be done for 'all'.
make[6]: Leaving directory '/tmp/buildd/libhmsbeagle-2.1.2+20150609/examples/tinytest'
============================================================================
Testsuite summary for libhmsbeagle 2.1.2
============================================================================
# TOTAL: 1
# PASS:  0
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0
============================================================================
See examples/tinytest/test-suite.log
Please report to beagle-dev at googlegroups.com
============================================================================
Makefile:696: recipe for target 'test-suite.log' failed


while examples/tinytest/test-suite.log looks like:


==========================================================
   libhmsbeagle 2.1.2: examples/tinytest/test-suite.log
==========================================================

# TOTAL: 1
# PASS:  0
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

FAIL: tinytest
==============


OpenCL error: Unknown error from file <GPUInterfaceOpenCL.cpp>, line 111.


I found the following link

   https://groups.google.com/forum/#!topic/beast-users/vSxxJqL2zPc

with the hint to intel-opencl which translated to another Build-Depends

   beignet-dev

This enabled me to debuild on my local machine.  However, when building
using pbuilder I end up with


# cat tmp/buildd/libhmsbeagle-2.1.2+20150609/examples/tinytest/tinytest.log 
beignet-opencl-icd: no supported GPU found, this is probably the wrong opencl-icd package for this hardware
(If you have multiple ICDs installed and OpenCL works, you can ignore this message)

OpenCL error: CL_DEVICE_NOT_FOUND from file <GPUInterfaceOpenCL.cpp>, line 118.
FAIL tinytest (exit status: 255)


I assume the reason is that the chroot environment does not see any
graphics hardware.  Does this mean I need to exclude this test (which
I actually considered quite helpful) or is there any trick to get the
test working even in a chroot?

Any hint is welcome

      Andreas.

-- 
http://fam-tille.de



More information about the Debian-med-packaging mailing list