OpenCL enabled build fails

Bug #1305794 reported by kaefert
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Enblend
Won't Fix
Undecided
Unassigned

Bug Description

My newly built enblend binary printed a lot of those lines:
enblend: info: no OpenCL support compiled into Enblend

So I looked into how to compile enblend with OpenCL support.
I've found this cmake switch:
-DENABLE_OPENCL:BOOL=ON

and this package in my repos:
nvidia-opencl-dev

Next I got an error from make package right at the beginning:
/bin/sh: 1: cannot create /home/kaefert/src/enblend/enblend.build_1044/src/kernels/distance_transform_fh.icl: Directory nonexistent

So I created the directory manually, and now my compiling fails after 44% with a lot of lines like those:
opencl.cc:(.text._ZN3ocl12LazyFunctionINS_16SourceFilePolicyEE5buildERKSs[_ZN3ocl12LazyFunctionINS_16SourceFilePolicyEE5buildERKSs]+0x1d6): undefined reference to `clReleaseDevice'
opencl.cc:(.text._ZN3ocl12LazyFunctionINS_16SourceFilePolicyEE5buildERKSs[_ZN3ocl12LazyFunctionINS_16SourceFilePolicyEE5buildERKSs]+0x2d9): undefined reference to `clRetainDevice'

Revision history for this message
tmodes (tmodes) wrote :

The issue with the kernels directory has been fixed in changeset 73f82ec4b09b62a11280ec503023cc954963897c

The linker remains open. Check the version of your OpenCL lib.

Revision history for this message
kaefert (kaefert) wrote :

those are the versons of the OpenCL libraries installed on my system:

nvidia-opencl-dev 5.0.35-7ubuntu1 (saucy)
opencl-headers 1.2-2013.06.28-2 (saucy)
nvidia-libopencl1-331 331.67-0unbutu1~xedgers13.10.2 (saucy)

Revision history for this message
kaefert (kaefert) wrote :

hmm, this looks like theres something wrong with OpenCL on my system...
$ sudo optirun clinfo
clinfo: /usr/lib/x86_64-linux-gnu/libOpenCL.so.1: no version information available (required by clinfo)
I: ICD loader reports no usable platforms

Revision history for this message
kaefert (kaefert) wrote :

Okey, so I've been investigating some more on OpenCL
Now I've installed those additional packages:

nvidia-opencl-icd-331 331.67-0unbutu1~xedgers13.10.2 (saucy)
nvidia-331-uvm 331.67-0unbutu1~xedgers13.10.2 (saucy)

Now my clinfo output changed into this, which is still not what it should look like I guess.. :
[23501.842978] [ERROR]Cannot access secondary GPU - error: [XORG] (EE) Server terminated successfully (0). Closing log file.

[23501.843005] [ERROR]Aborting because fallback start is disabled.

Revision history for this message
Christoph Spiel (cspiel) wrote :

WRT your original errors. They point to outdated OpenCL header files.
Ask your sysadmin to get the most recent versions from
    http://www.khronos.org/opencl/
and install them in the appropriate place.

Next thing on her agenda is to update the OpenCL libraries to their
latest versions. Again, the older versions tend to be much buggier
than recent ones.

The complete OpenCL environment (headers, drivers, libraries, etc.)
must work perfectly before you can expect Enblend to even try to
utilize the GPU.

Christoph Spiel (cspiel)
Changed in enblend:
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.