Logo by Pauldelbrot - Contribute your own Logo!
News: Visit us on facebook
 
*
Welcome, Guest. Please login or register. September 19, 2017, 07:15:35 PM


Login with username, password and session length


The All New FractalForums is now in Public Beta Testing! Visit FractalForums.org and check it out!


Pages: [1]   Go Down
  Print  
Share this topic on DiggShare this topic on FacebookShare this topic on GoogleShare this topic on RedditShare this topic on StumbleUponShare this topic on Twitter
Author Topic: Mandelbulber 1.21 OpenCL  (Read 2049 times)
0 Members and 1 Guest are viewing this topic.
bartolomiew
Forums Newbie
*
Posts: 1


« on: June 09, 2014, 09:34:05 PM »

Hi all,

I'm really newbie with Mandelbulber and I'm trying to use it on Window 7 x64 16 Gb with an ATI Radeon 6770.
I've downloaded and installed lastest catalyst : 14-4-win7-win8-win8.1-64-dd-ccc-whql.exe
I've tested OpenCL with GPU_Caps_Viewer_1.20.1.1
But activating OpenCL in Mandelbulber results in a crash.
I'm working in a R&D department and a friend of mine help me telling that my OpenCL version is a newer and the culprit is the use of variable with the name 'half'.
So I've just find/replaced 'half' by '_half' in those files :
- cl_engine.cl
- cl_engine_fast.cl
- cl_engine_full.cl
- cl_engine_noDE.cl
and now I'm able to use OpenCL with Mandelbulder.
I hope this help even if my description is not accurate.

Logged
piotrv
Forums Newbie
*
Posts: 2


« Reply #1 on: June 11, 2014, 08:52:28 AM »

I experienced the same opencl 1.2 problem since amd catalyst driver 14.4 (13.2 works), both on 64bit Linux and Win7 platform :

Code:
OpenCL Build log: "S:\TEMP\OCL4008T5.cl", line 427: error: invalid combination of type specifiers
  float3 half = input->lightVect - input->viewVector;
         ^

"S:\TEMP\OCL4008T5.cl", line 427: error: expected an identifier
  float3 half = input->lightVect - input->viewVector;
              ^

"S:\TEMP\OCL4008T5.cl", line 428: error: expected an identifier
  half = normalize(half);
       ^

"S:\TEMP\OCL4008T5.cl", line 428: error: direct use of type "half" requires
          OpenCL extension cl_khr_f16 (not supported)
  half = normalize(half);
  ^

"S:\TEMP\OCL4008T5.cl", line 428: error: expected an expression
  half = normalize(half);
                   ^

"S:\TEMP\OCL4008T5.cl", line 429: error: expected an expression
  float shade2 = dot(input->normal,half);
                                   ^

6 errors detected in the compilation of "S:\TEMP\OCL4008T5.cl".

Frontend phase failed compilation.

 thanks sign for sharing this workaround !
Logged
joe
Explorer
****
Posts: 43


« Reply #2 on: July 02, 2014, 08:42:24 AM »

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  undecided
Code:
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.

Logged
mclarekin
Fractal Senior
******
Posts: 1734



« Reply #3 on: July 06, 2014, 02:39:36 PM »

@Joe,

Your openCL build log is similar to what I get every time I run Mandelbulber 1.21 64bit on my laptop, where I can only run openCL  on device type CPU (as my GPU chipset software cannot be updated for  the openCL versions that can handle "float3").

Mandelbulber 64bit seems to by default try and run openCL on device type GPU,  fails, then displays the error. I close the OpenCL build log,  and on the openCL engine tab I "tick" openCL Enable,  Mandelbulber then finds the device type CPU and all works fine.

Note:
  - on the OpenCL Engine tab, the openCL Information states in my case GPU frequency and GPU memory instead of CPU.
  - i'm running an intel i3 CPU  on an AMD openCL platform.

Hope this is clear and helps
Logged
the5thfool
Forums Freshman
**
Posts: 11

FSM is fractal


the5thfool
« Reply #4 on: July 19, 2014, 09:17:27 AM »

Hi all,

I'm really newbie with Mandelbulber and I'm trying to use it on Window 7 x64 16 Gb with an ATI Radeon 6770.
I've downloaded and installed lastest catalyst : 14-4-win7-win8-win8.1-64-dd-ccc-whql.exe
I've tested OpenCL with GPU_Caps_Viewer_1.20.1.1
But activating OpenCL in Mandelbulber results in a crash.
I'm working in a R&D department and a friend of mine help me telling that my OpenCL version is a newer and the culprit is the use of variable with the name 'half'.
So I've just find/replaced 'half' by '_half' in those files :
- cl_engine.cl
- cl_engine_fast.cl
- cl_engine_full.cl
- cl_engine_noDE.cl
and now I'm able to use OpenCL with Mandelbulder.
I hope this help even if my description is not accurate.



This worked for me.
AMD R9 280x, newest catalyst drivers (as of 7/19/2014)
Logged

Pages: [1]   Go Down
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
Mandelbulber and OpenCL Mandelbulber Buddhi 12 3657 Last post November 16, 2011, 11:04:25 AM
by Loadus
Mandelbulber 1.17 - OpenCL Releases « 1 2 3 4 » Buddhi 49 7360 Last post October 15, 2013, 10:03:11 PM
by Buddhi
Mandelbulber 1.18 - OpenCL Releases « 1 2 3 » Buddhi 37 4856 Last post November 16, 2013, 09:22:05 PM
by Buddhi
Mandelbulber OpenCL 1.21-1 error Bug Reporting the5thfool 7 507 Last post July 20, 2014, 08:04:33 PM
by Buddhi
OpenCL Mandelbulber 1.21 on my CPU Tutorials mclarekin 0 502 Last post October 30, 2014, 12:46:18 AM
by mclarekin

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM
Page created in 0.166 seconds with 28 queries. (Pretty URLs adds 0.011s, 2q)