Interesting, I got GPU caps viewer and confirmed openCL works fine... though I've never had it work in mandelbulber. So I tried the workaround, replaced "half" with "_half" in those files. Still not working
OpenCL Build log: "C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 12: error: identifier
"float3" is undefined
typedef float3 cl_float3;
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 25: error: identifier
"float3" is undefined
float3 z;
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 34: error: identifier
"float3" is undefined
static formulaOut Fractal(__constant sClInConstants *consts, float3 point, sClCalcParams *calcParam);
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 35: error: identifier
"float3" is undefined
static formulaOut CalculateDistance(__constant sClInConstants *consts, float3 point, sClCalcParams *calcParam);
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 37: error: identifier
"float3" is undefined
inline float3 Matrix33MulFloat3(matrix33 matrix, float3 vect)
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 37: error: identifier
"float3" is undefined
inline float3 Matrix33MulFloat3(matrix33 matrix, float3 vect)
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 39: error: identifier
"float3" is undefined
float3 out;
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 66: error: identifier
"float3" is undefined
rot.m1 = (float3) {1.0f, 0.0f, 0.0f};
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 66: error: write to <
32 bits via pointer not allowed unless cl_khr_byte_addressable_store
is enabled
rot.m1 = (float3) {1.0f, 0.0f, 0.0f};
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 66: error: expected a
";"
rot.m1 = (float3) {1.0f, 0.0f, 0.0f};
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 67: error: write to <
32 bits via pointer not allowed unless cl_khr_byte_addressable_store
is enabled
rot.m2 = (float3) {0.0f, c , -s };
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 67: error: expected a
";"
rot.m2 = (float3) {0.0f, c , -s };
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 68: error: write to <
32 bits via pointer not allowed unless cl_khr_byte_addressable_store
is enabled
rot.m3 = (float3) {0.0f, s , c };
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 68: error: expected a
";"
rot.m3 = (float3) {0.0f, s , c };
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 78: error: identifier
"float3" is undefined
rot.m1 = (float3) {c , 0.0f, s };
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 78: error: write to <
32 bits via pointer not allowed unless cl_khr_byte_addressable_store
is enabled
rot.m1 = (float3) {c , 0.0f, s };
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 78: error: expected a
";"
rot.m1 = (float3) {c , 0.0f, s };
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 79: error: write to <
32 bits via pointer not allowed unless cl_khr_byte_addressable_store
is enabled
rot.m2 = (float3) {0.0f, 1.0f, 0.0f};
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 79: error: expected a
";"
rot.m2 = (float3) {0.0f, 1.0f, 0.0f};
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 80: error: write to <
32 bits via pointer not allowed unless cl_khr_byte_addressable_store
is enabled
rot.m3 = (float3) {-s , 0.0f, c };
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 80: error: expected a
";"
rot.m3 = (float3) {-s , 0.0f, c };
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 90: error: identifier
"float3" is undefined
rot.m1 = (float3) { c , -s , 0.0f};
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 90: error: write to <
32 bits via pointer not allowed unless cl_khr_byte_addressable_store
is enabled
rot.m1 = (float3) { c , -s , 0.0f};
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 90: error: expected a
";"
rot.m1 = (float3) { c , -s , 0.0f};
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 91: error: write to <
32 bits via pointer not allowed unless cl_khr_byte_addressable_store
is enabled
rot.m2 = (float3) { s , c , 0.0f};
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 91: error: expected a
";"
rot.m2 = (float3) { s , c , 0.0f};
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 92: error: write to <
32 bits via pointer not allowed unless cl_khr_byte_addressable_store
is enabled
rot.m3 = (float3) {0.0f, 0.0f, 1.0f};
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 92: error: expected a
";"
rot.m3 = (float3) {0.0f, 0.0f, 1.0f};
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 150: error: identifier
"float3" is undefined
float3 NormalVector(__constant sClInConstants *consts, float3 point, float mainDistance, float distThresh, sClCalcParams *calcParam)
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 150: error: identifier
"float3" is undefined
float3 NormalVector(__constant sClInConstants *consts, float3 point, float mainDistance, float distThresh, sClCalcParams *calcParam)
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 153: error: identifier
"float3" is undefined
float s1 = CalculateDistance(consts, point + (float3){delta,0.0f,0.0f}, calcParam).distance;
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 153: error: too few
arguments in function call
float s1 = CalculateDistance(consts, point + (float3){delta,0.0f,0.0f}, calcParam).distance;
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 153: error: expected a
")"
float s1 = CalculateDistance(consts, point + (float3){delta,0.0f,0.0f}, calcParam).distance;
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 153: error: a value of
type "formulaOut" cannot be used to initialize an entity of type
"float"
float s1 = CalculateDistance(consts, point + (float3){delta,0.0f,0.0f}, calcParam).distance;
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 153: error: "calcParam"
has already been declared in the current scope
float s1 = CalculateDistance(consts, point + (float3){delta,0.0f,0.0f}, calcParam).distance;
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 153: error: expected a
";"
float s1 = CalculateDistance(consts, point + (float3){delta,0.0f,0.0f}, calcParam).distance;
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 154: error: too few
arguments in function call
float s2 = CalculateDistance(consts, point + (float3){0.0f,delta,0.0f}, calcParam).distance;
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 154: error: expected a
")"
float s2 = CalculateDistance(consts, point + (float3){0.0f,delta,0.0f}, calcParam).distance;
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 154: error: a value of
type "formulaOut" cannot be used to initialize an entity of type
"float"
float s2 = CalculateDistance(consts, point + (float3){0.0f,delta,0.0f}, calcParam).distance;
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 154: error: "calcParam"
has already been declared in the current scope
float s2 = CalculateDistance(consts, point + (float3){0.0f,delta,0.0f}, calcParam).distance;
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 154: error: expected a
";"
float s2 = CalculateDistance(consts, point + (float3){0.0f,delta,0.0f}, calcParam).distance;
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 155: error: too few
arguments in function call
float s3 = CalculateDistance(consts, point + (float3){0.0f,0.0f,delta}, calcParam).distance;
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 155: error: expected a
")"
float s3 = CalculateDistance(consts, point + (float3){0.0f,0.0f,delta}, calcParam).distance;
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 155: error: a value of
type "formulaOut" cannot be used to initialize an entity of type
"float"
float s3 = CalculateDistance(consts, point + (float3){0.0f,0.0f,delta}, calcParam).distance;
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 155: error: "calcParam"
has already been declared in the current scope
float s3 = CalculateDistance(consts, point + (float3){0.0f,0.0f,delta}, calcParam).distance;
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 155: error: expected a
";"
float s3 = CalculateDistance(consts, point + (float3){0.0f,0.0f,delta}, calcParam).distance;
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 156: error: expected a
";"
float3 normal = (float3) {s1 - mainDistance, s2 - mainDistance, s3 - mainDistance};
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 157: error: identifier
"normal" is undefined
normal = normalize(normal);
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 161: error: identifier
"float3" is undefined
float3 IndexToColour(int index, global float3 *palette)
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 161: error: identifier
"float3" is undefined
float3 IndexToColour(int index, global float3 *palette)
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 163: error: identifier
"float3" is undefined
float3 colOut, col1, col2, colDiff;
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 178: error: identifier
"float3" is undefined
float3 Background(float3 viewVector, __constant sClParams *params)
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 178: error: identifier
"float3" is undefined
float3 Background(float3 viewVector, __constant sClParams *params)
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 180: error: identifier
"float3" is undefined
float3 vector = {0.0f, 0.0f, -1.0f};
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 183: error: identifier
"float3" is undefined
float3 colour;
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 199: error: image types
not support for the target hardware
kernel void fractal3D(__global sClPixel *out, __global sClInBuff *inBuff, __constant sClInConstants *consts, __global sClReflect *reflectBuff, image2d_t imageBackground, int Gcl_offset)
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 216: error: identifier
"float3" is undefined
const float3 one = (float3)
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 216: error: identifier
"float3" is undefined
const float3 one = (float3)
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 217: error: expected a
";"
{ 1.0f, 0.0f, 0.0f};
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 218: error: "float3" is
not a type name
const float3 ones = 1.0f;
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 221: error: write to <
32 bits via pointer not allowed unless cl_khr_byte_addressable_store
is enabled
rot.m1 = (float3)
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 222: error: expected a
";"
{ 1.0f, 0.0f, 0.0f};
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 223: error: write to <
32 bits via pointer not allowed unless cl_khr_byte_addressable_store
is enabled
rot.m2 = (float3)
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 224: error: expected a
";"
{ 0.0f, 1.0f, 0.0f};
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 225: error: write to <
32 bits via pointer not allowed unless cl_khr_byte_addressable_store
is enabled
rot.m3 = (float3)
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 226: error: expected a
";"
{ 0.0f, 0.0f, 1.0f};
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 231: error: expected a
";"
float3 back = (float3)
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 233: error: expected a
";"
float3 start = consts->params.vp - Matrix33MulFloat3(rot, back);
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 239: error: expected a
";"
float3 viewVector = (float3)
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 241: error: identifier
"viewVector" is undefined
viewVector = Matrix33MulFloat3(rot, viewVector);
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 246: error: expected a
";"
float3 point;
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 253: error: write to <
32 bits via pointer not allowed unless cl_khr_byte_addressable_store
is enabled
calcParam.orbitTrap = 0.0f;
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 261: error: identifier
"point" is undefined
point = start + viewVector * scan;
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 261: error: identifier
"start" is undefined
point = start + viewVector * scan;
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 292: error: identifier
"point" is undefined
point += viewVector * step;
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 296: error: identifier
"point" is undefined
point -= viewVector * step;
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 299: error: identifier
"point" is undefined
outF = CalculateDistance(consts, point, &calcParam);
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 308: error: expected a
";"
float3 colour = 0.0f;
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 309: error: expected a
";"
float3 surfaceColour = 1.0f;
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 312: error: expected a
";"
float3 normal = NormalVector(consts, point, distance, distThresh, &calcParam);
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 314: error: expected a
";"
float3 lightVector = (float3)
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 319: error: identifier
"lightVector" is undefined
lightVector = Matrix33MulFloat3(rot, lightVector);
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 320: error: identifier
"normal" is undefined
float shade = dot(lightVector, normal);
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 323: error: expected a
";"
float3 _half = lightVector - viewVector;
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 324: error: identifier
"_half" is undefined
_half = fast_normalize(_half);
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 332: error: identifier
"surfaceColour" is undefined
if (consts->params.colouringEnabled) surfaceColour = IndexToColour(colourNumber, inBuff->palette);
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 334: error: identifier
"colour" is undefined
colour = (shade * surfaceColour + specular);
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 334: error: identifier
"surfaceColour" is undefined
colour = (shade * surfaceColour + specular);
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 338: error: identifier
"colour" is undefined
colour = Background(viewVector, &consts->params);
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 344: error: expected a
";"
float3 glowColor;
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 345: error: identifier
"glowColor" is undefined
glowColor.x = 1.0f * glowN + 1.0f * glow;
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 348: error: identifier
"colour" is undefined
colour += glowColor * glow;
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 356: error: identifier
"surfaceColour" is undefined
pixel.colR = surfaceColour.x*255;
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 356: error: write to <
32 bits via pointer not allowed unless cl_khr_byte_addressable_store
is enabled
pixel.colR = surfaceColour.x*255;
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 357: error: write to <
32 bits via pointer not allowed unless cl_khr_byte_addressable_store
is enabled
pixel.colG = surfaceColour.y*255;
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 358: error: write to <
32 bits via pointer not allowed unless cl_khr_byte_addressable_store
is enabled
pixel.colB = surfaceColour.z*255;
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 359: error: write to <
32 bits via pointer not allowed unless cl_khr_byte_addressable_store
is enabled
pixel.opacity = 0;
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 360: error: write to <
32 bits via pointer not allowed unless cl_khr_byte_addressable_store
is enabled
pixel.alpha = 65535;
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 376: error: identifier
"float3" is undefined
float PrimitivePlane(float3 point, float3 centre, float3 normal)
^
"C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl", line 376: error: identifier
"float3" is undefined
float PrimitivePlane(float3 point, float3 centre, float3 normal)
^
Error limit reached.
100 errors detected in the compilation of "C:\Users\Joe\AppData\Local\Temp\OCL198F.tmp.cl".
Compilation terminated.
Internal error: clc compiler invocation failed.