[Pkg-opencl-devel] latest pocl upload
Michal Babej
rakka at runbox.com
Sun Mar 11 09:00:49 UTC 2018
Hi,
> On 2018-03-10 08:39, Daniel Vacek wrote:
> > Also, this one seems like a debug build:
> >
> > $ clinfo | grep DEBUG
> > Platform Version OpenCL 1.2 pocl
> > 1.1 None+Asserts, LLVM 4.0.1, SLEEF, POCL_DEBUG
> @Michal, can you comment on the "debug build" question?
If you mean "POCL_DEBUG", that means pocl will recognize env variable
POCL_DEBUG and print out various useful information. This has nothing
to do with build type, and I recommend to build pocl with it, as it
really helps with troubleshooting. But you *can* compile pocl without
it.
OTOH, i see "None+Asserts" which is the build type. I'm not sure how
you managed to arrive at "None", as there's some Cmake code to set up
the build type if it's missing, but i highly recommend you to pick one.
I'm guessing "RelWithDebInfo" or "Release" are suitable for Debian.
cmake -DCMAKE_BUILD_TYPE=<build-type>
should do it. It's also possible to fine-tune the flags for each build
type, in case you need it. The defaults IIRC are "-O2 -g -DNDEBUG" for
RWDI and "-O3 -DNDEBUG" for Release.
-- mb
More information about the Pkg-opencl-devel
mailing list