[FFmpeg-trac] #2422(avutil:new): Compilation with OpenCL fails when w32threads or os2threads are enabled

FFmpeg trac at avcodec.org
Mon May 27 14:21:03 CEST 2013


#2422: Compilation with OpenCL fails when w32threads or os2threads are enabled
------------------------------------+----------------------------------
             Reporter:  jamal       |                    Owner:
                 Type:  defect      |                   Status:  new
             Priority:  important   |                Component:  avutil
              Version:  git-master  |               Resolution:
             Keywords:  opencl      |               Blocked By:
             Blocking:              |  Reproduced by developer:  0
Analyzed by developer:  0           |
------------------------------------+----------------------------------

Comment (by cehoyos):

 Replying to [comment:2 highgod]:
 > If disable the pthreads, there will be no "static pthread_mutex_t
 atomic_opencl_lock = PTHREAD_MUTEX_INITIALIZER;", so is there any other
 better way to implement it?

 I don't know but this is not the important point about this issue (imo):
 configure currently does not fail for --enable-opencl if pthreads is not
 available, please fix the conditions for opencl in configure so that it
 already fails when configuring, not later at compile time.

 (I suspect that you should use the functions from libavutil/atomic.h but
 maybe that does not work with opencl?)

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2422#comment:4>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list