Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Video Encoding > MPEG-4 AVC / H.264

Reply
 
Thread Tools Search this Thread Display Modes
Old 16th September 2015, 23:28   #1  |  Link
Rash
Registered User
 
Rash's Avatar
 
Join Date: Aug 2002
Posts: 403
x264 OpenCL on OS X?

Has anyone ever been able to use OpenCL on OS X? I get an error during the shader's compilation.

[libx264 @ 0x7fd2b9003200] OpenCL acceleration enabled with NVIDIA GeForce GTX 680MX
[libx264 @ 0x7fd2b9003200] Compiling OpenCL kernels...
[libx264 @ 0x7fd2b9003200] OpenCL: OpenCL Build Warning : Compiler build log:
<program source>:91:5: warning: no previous prototype for function 'parallel_sum'
int parallel_sum( int value, int x, volatile local int *array )
^
(There are more)

This is on ffmpeg 2.8 and x264 core:146 r2555. OS X is on the latest updates.

I don't know if there is anything else for me to do at this point, so this is mostly a curiosity.
Rash is offline   Reply With Quote
Old 17th September 2015, 00:19   #2  |  Link
MasterNobody
Registered User
 
Join Date: Jul 2007
Posts: 548
According to stackoverflow answers (and this) it looks like OS X's OpenCL compiler don't like non static (and which are not inlined) functions without previous protypes (dunno why such restriction). You can try to add static keyword for such functions in common\opencl files of x264 to test this.

Last edited by MasterNobody; 17th September 2015 at 00:25.
MasterNobody is offline   Reply With Quote
Reply

Tags
opencl, os x, x264

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 00:44.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2022, vBulletin Solutions Inc.