[Bf-cycles] OpenCL & osx

Brecht Van Lommel brechtvanlommel at pandora.be
Mon Sep 5 10:27:13 CEST 2011


Hi,

Thanks for the error log. I've committed a change now to avoid
interpreting such warnings as errors, not sure how to avoid them,
looks like a bug in the opencl compiler.

Brecht.

On Sat, Sep 3, 2011 at 9:16 PM, Jens Verwiebe <info at jensverwiebe.de> wrote:
> Hi Brecht
> Just a first glance openCL report on OSX Lion ( openCL 1.1 ).
> Seems there is a general little problem with prototypes/compiler.
> Here the essential ( cuuted down ) report:
> OpenCL build failed:
>  In file included from <program source>:1:
> In file included from
> /Volumes/Daten1TB/bf-blender/all_builds/blender_cycles/bin/blender.app/Contents/MacOS/2.59/scripts/addons/cycles/kernel/kernel.cl:21:
> /Volumes/Daten1TB/bf-blender/all_builds/blender_cycles/bin/blender.app/Contents/MacOS/2.59/scripts/addons/cycles/kernel/kernel_compat_opencl.h:39:16:
> error: no previous prototype for function 'kernel_tex_interp_'
> __device float kernel_tex_interp_(__global float *data, int width, float x)
>                ^
> In file included from <program source>:1:
> In file included from
> /Volumes/Daten1TB/bf-blender/all_builds/blender_cycles/bin/blender.app/Contents/MacOS/2.59/scripts/addons/cycles/kernel/kernel.cl:22:
> In file included from
> /Volumes/Daten1TB/bf-blender/all_builds/blender_cycles/bin/blender.app/Contents/MacOS/2.59/scripts/addons/cycles/kernel/kernel_math.h:22:
> In file included from
> /Volumes/Daten1TB/bf-blender/all_builds/blender_cycles/bin/blender.app/Contents/MacOS/2.59/scripts/addons/cycles/kernel/util_color.h:22:
> /Volumes/Daten1TB/bf-blender/all_builds/blender_cycles/bin/blender.app/Contents/MacOS/2.59/scripts/addons/cycles/kernel/util_math.h:104:23:
> error: no previous prototype for function 'min4'
> __device_inline float min4(float a, float b, float c, float d)
>                       ^
> /Volumes/Daten1TB/bf-blender/all_builds/blender_cycles/bin/blender.app/Contents/MacOS/2.59/scripts/addons/cycles/kernel/util_math.h:109:23:
> error: no previous prototype for function 'max4'
> __device_inline float max4(float a, float b, float c, float d)
>                       ^
> /Volumes/Daten1TB/bf-blender/all_builds/blender_cycles/bin/blender.app/Contents/MacOS/2.59/scripts/addons/cycles/kernel/util_math.h:128:23:
> error: no previous prototype for function 'signf'
> __device_inline float signf(float f)
>                       ^
> /Volumes/Daten1TB/bf-blender/all_builds/blender_cycles/bin/blender.app/Contents/MacOS/2.59/scripts/addons/cycles/kernel/util_math.h:133:23:
> error: no previous prototype for function 'nonzerof'
> __device_inline float nonzerof(float f, float eps)
>                       ^
> /Volumes/Daten1TB/bf-blender/all_builds/blender_cycles/bin/blender.app/Contents/MacOS/2.59/scripts/addons/cycles/kernel/util_math.h:344:22:
> error: no previous prototype for function 'is_zero'
> __device_inline bool is_zero(const float3 a)
>                      ^
> /Volumes/Daten1TB/bf-blender/all_builds/blender_cycles/bin/blender.app/Contents/MacOS/2.59/scripts/addons/cycles/kernel/util_math.h:349:23:
> error: no previous prototype for function 'average'
> __device_inline float average(const float3 a)
>                       ^
> /Volumes/Daten1TB/bf-blender/all_builds/blender_cycles/bin/blender.app/Contents/MacOS/2.59/scripts/addons/cycles/kernel/util_math.h:465:23:
> error: no previous prototype for function 'len'
> __device_inline float len(const float3 a)
>                       ^
> /Volumes/Daten1TB/bf-blender/all_builds/blender_cycles/bin/blender.app/Contents/MacOS/2.59/scripts/addons/cycles/kernel/util_math.h:479:24:
> error: no previous prototype for function 'normalize_len'
> __device_inline float3 normalize_len(const float3 a, float *t)
>                        ^
> /Volumes/Daten1TB/bf-blender/all_builds/blender_cycles/bin/blender.app/Contents/MacOS/2.59/scripts/addons/cycles/kernel/util_math.h:521:24:
> error: no previous prototype for function 'float4_to_float3'
> __device_inline float3 float4_to_float3(const float4 a)
>                        ^
> /Volumes/Daten1TB/bf-blender/all_builds/blender_cycles/bin/blender.app/Contents/MacOS/2.59/scripts/addons/cycles/kernel/util_math.h:535:24:
> error: no previous prototype for function 'interp'
> __device_inline float3 interp(float3 a, float3 b, float t)
>                        ^
> Cheers…Jens
> _____________________________________
> Jens Verwiebe  -  Komposition - Audiotechnik -
> Allerskehre 44  -  22309 Hamburg
> Tel.: +49 40 68 78 50
> mobil: +49 172 400 49 07
> mailto: info at jensverwiebe.de
> web:  http://www.jensverwiebe.de
> _____________________________________
>
> _______________________________________________
> Bf-cycles mailing list
> Bf-cycles at blender.org
> http://lists.blender.org/mailman/listinfo/bf-cycles
>
>


More information about the Bf-cycles mailing list