(Problem) Mandelbulber 2.16 Open CL failure with AMD Radeon HD 6970M 2048 MB

  • 31 Replies
  • 1541 Views

0 Members and 1 Guest are viewing this topic.

Offline trigger2k19

  • *
  • Fractal Friend
  • **
  • Posts: 13
  • Dive Deep, Fly High!
« on: January 27, 2019, 01:55:43 PM »
Hi,
i have a Imac iMac (27-inch, 16 GB, Mid 2011, latest macos high sierra) with AMD Radeon HD 6970M 2048 MB. When i enable OpenCL in Mandelbulber Version: 2.16 the i get the following error message:

Error: Error during compilation of OpenCL program
OpenCL Build log:
<program source>:26:1: error: expected identifier or '('
#include "/Applications/mandelbulber2.app/opencl/engines/bicubic_interpolation.cl"
^
<program source>:33:1: error: expected identifier or '('
#include "/Applications/mandelbulber2.app/opencl/engines/shader_hsv2rgb.cl"
^
<program source>:41:1: error: expected identifier or '('
#include "/Applications/mandelbulber2.app/opencl/engines/shader_ambient_occlusion.cl"
^
<program source>:51:1: error: expected identifier or '('
#in

Please help, thanks  :)
trigger2k19


Linkback: https://fractalforums.org/mandelbulber/14/mandelbulber-2-16-open-cl-failure-with-amd-radeon-hd-6970m-2048-mb/2572/

Offline buddhi

  • *
  • Fractal Feline
  • **
  • Posts: 157
    • Mandelbulber GitHub repository
« Reply #1 on: January 27, 2019, 03:23:28 PM »
This is very strange problem of OpenCL compile which occurs only on MacOS. On every other system all OpenCL programs are compiled properly.
Actually I don't have an idea what could eliminate this failure.
Only what I found in interned are:
https://devtalk.nvidia.com/default/topic/480071/cuda-programming-and-performance/problem-compiling-simple-example/
https://stackoverflow.com/questions/24971071/opencl-expected-identifier-in-kernel
It looks like other developers also encountered this problem.

I don't have any machine with MacOS
I need to find somebody with Apple computer who can help me to solve this problem.


Offline trigger2k19

  • *
  • Fractal Friend
  • **
  • Posts: 13
  • Dive Deep, Fly High!
« Reply #2 on: January 28, 2019, 01:04:40 AM »
Hi buddi,

i have a imac and maybe i can help. Are you a developer of Mandelbulber ?

Offline Tas_mania

  • *
  • Fractal Friar
  • *
  • Posts: 149
    • West Tamar Talk
« Reply #3 on: January 28, 2019, 11:46:43 PM »
Is the error from enabling OpenCL in 'Program Preferences'? I had a 2Gb Nvidia card that I could enable in Preferences but was unusable in Mandelbulber. It would be good to establish a Mandelbulber 'minimum system requirements' for Radeon and Nvidia. OpenCL 1.1 does not work and it looks like 4Gb ram is also a minimum requirement.

Offline buddhi

  • *
  • Fractal Feline
  • **
  • Posts: 157
    • Mandelbulber GitHub repository
« Reply #4 on: February 06, 2019, 10:18:22 PM »
Hi buddi,

i have a imac and maybe i can help. Are you a developer of Mandelbulber ?

Yes, I'm a developer of Mandelbulber. I need help of somebody who has iMac and is capable to work with C++ code. Are you able to compile Mandelbulber from source on MacOS and run it? If yes, I can give you some advices what kind of changes in the code would be needed to do and test.

Offline hgjf2

  • *
  • Fractal Friar
  • *
  • Posts: 136
« Reply #5 on: February 09, 2019, 10:18:23 AM »
Also this "open CL failure" bug is fewer than the bug "pBuffer don't accepted" of the program INCENDIA whick don't supports WINDOWS 10 and don't supports certain IPs, that INCENDIA won't open.

Offline verstaerker

  • *
  • Fractal Freshman
  • *
  • Posts: 3
« Reply #6 on: March 11, 2019, 10:41:54 AM »
i can't help with the issue but i can confirm this bug with mandelbulber 2.17 on two different machines
MacPro 2013 (Dual D500)
and a
Macbook Pro 2016 (AMD 460)
both are on 10.14.3

Offline trigger2k19

  • *
  • Fractal Friend
  • **
  • Posts: 13
  • Dive Deep, Fly High!
« Reply #7 on: May 04, 2019, 11:54:44 AM »
Hello Buddi,

sorry vor being very late in reply on your offering, but i cannot do C++ or programming. What i can do like other on the thread have mantioned, i can provide a imac via remote access. Can Confirm the problem ist still in the Version 2.17:

Fehler: Fehler bei der Kompilierung des OpenCL Programms
Device #0
OpenCL Build log:
<program source>:26:1: error: expected identifier or '('
#include "/Applications/mandelbulber2.app/opencl/engines/bicubic_interpolation.cl"
^
<program source>:33:1: error: expected identifier or '('
#include "/Applications/mandelbulber2.app/opencl/engines/shader_hsv2rgb.cl"
^
<program source>:41:1: error: expected identifier or '('
#include "/Applications/mandelbulber2.app/opencl/engines/shader_ambient_occlusion.cl"
^
<program source>:51:1: error: expected identifier

Cheers Trigger2k19

Offline buddhi

  • *
  • Fractal Feline
  • **
  • Posts: 157
    • Mandelbulber GitHub repository
« Reply #8 on: May 06, 2019, 11:17:43 PM »
Maybe I have found something. These errors was probably about something wrong before #include word. The code is partially auto-generates. Header of compiled code is following:
Code: [Select]
#define USE_OPENCL 1
#include "/usr/share/mandelbulber2/opencl/defines_cl.h"
#include "/usr/share/mandelbulber2/opencl/opencl_typedefs.h"
#include "/usr/share/mandelbulber2/opencl/opencl_algebra.h"
#include "/usr/share/mandelbulber2/opencl/common_params_cl.hpp"
#include "/usr/share/mandelbulber2/opencl/image_adjustments_cl.h"
#include "/usr/share/mandelbulber2/opencl/fractal_cl.h"
#include "/usr/share/mandelbulber2/opencl/fractal_coloring_cl.hpp"
#include "/usr/share/mandelbulber2/opencl/fractparams_cl.hpp"
#include "/usr/share/mandelbulber2/opencl/fractal_sequence_cl.h"
#include "/usr/share/mandelbulber2/opencl/texture_enums_cl.h"
#include "/usr/share/mandelbulber2/opencl/material_cl.h"
#include "/usr/share/mandelbulber2/opencl/shader_input_data_cl.h"
#include "/usr/share/mandelbulber2/opencl/object_type_cl.h"
#include "/usr/share/mandelbulber2/opencl/object_data_cl.h"
#include "/usr/share/mandelbulber2/opencl/primitives_cl.h"
#include "/usr/share/mandelbulber2/opencl/input_data_structures.h"
#include "/usr/share/mandelbulber2/opencl/render_data_cl.h"
#include "/usr/share/mandelbulber2/formula/opencl/mandelbulb.cl"
#include "/usr/share/mandelbulber2/opencl/engines/fractal_coloring.cl"
#include "/usr/share/mandelbulber2/opencl/engines/compute_fractal.cl"
#include "/usr/share/mandelbulber2/opencl/engines/texture_mapping.cl"
#include "/usr/share/mandelbulber2/opencl/engines/shader_texture_pixel_address.cl"
#include "/usr/share/mandelbulber2/opencl/engines/bicubic_interpolation.cl"
#include "/usr/share/mandelbulber2/opencl/engines/displacement_map.cl"
#include "/usr/share/mandelbulber2/opencl/engines/primitives.cl"
#include "/usr/share/mandelbulber2/opencl/engines/calculate_distance.cl"
#include "/usr/share/mandelbulber2/opencl/engines/normal_vector.cl"
#include "/usr/share/mandelbulber2/opencl/engines/projection_3d.cl"
#include "/usr/share/mandelbulber2/opencl/engines/shader_iter_opacity.cl"
#include "/usr/share/mandelbulber2/opencl/engines/shader_hsv2rgb.cl"
#include "/usr/share/mandelbulber2/opencl/engines/shader_background.cl"
#include "/usr/share/mandelbulber2/opencl/engines/shader_surface_color.cl"
#include "/usr/share/mandelbulber2/opencl/engines/shader_main_shading.cl"
#include "/usr/share/mandelbulber2/opencl/engines/shader_specular_highlight.cl"
#include "/usr/share/mandelbulber2/opencl/engines/shader_specular_highlight_combined.cl"
#include "/usr/share/mandelbulber2/opencl/engines/shader_main_shadow.cl"
#include "/usr/share/mandelbulber2/opencl/engines/shader_fast_ambient_occlusion.cl"
#include "/usr/share/mandelbulber2/opencl/engines/shader_ambient_occlusion.cl"
#include "/usr/share/mandelbulber2/opencl/engines/shader_aux_shadow.cl"
#include "/usr/share/mandelbulber2/opencl/engines/shader_light_shading.cl"
#include "/usr/share/mandelbulber2/opencl/engines/shader_aux_lights_shader.cl"
#include "/usr/share/mandelbulber2/opencl/engines/shader_fake_lights.cl"
#include "/usr/share/mandelbulber2/opencl/engines/shader_iridescence.cl"
#include "/usr/share/mandelbulber2/opencl/engines/shader_texture.cl"
#include "/usr/share/mandelbulber2/opencl/engines/shader_normal_map_texture.cl"
#include "/usr/share/mandelbulber2/opencl/engines/shader_object.cl"
#include "/usr/share/mandelbulber2/opencl/engines/shader_global_illumination.cl"
#include "/usr/share/mandelbulber2/opencl/engines/shader_volumetric.cl"
#include "/usr/share/mandelbulber2/opencl/engines/ray_recursion.cl"
#include "/usr/share/mandelbulber2/opencl/engines/monte_carlo_dof.cl"

I have found that in header files which were included before #include statements there was no line breaks at the end of files. It could caused this problem (I cannot test it)
I have just added extra line breaks and committed changes. Tomorrow I will send you a link to fresh dmg file and you will test it and let me know how it works.

Offline trigger2k19

  • *
  • Fractal Friend
  • **
  • Posts: 13
  • Dive Deep, Fly High!
« Reply #9 on: May 07, 2019, 09:03:34 AM »
Hi Buddi,

thank You ! looking forward for the DMG, will test ! :-)

CheersTrigger2k19

Offline buddhi

  • *
  • Fractal Feline
  • **
  • Posts: 157
    • Mandelbulber GitHub repository
« Reply #10 on: May 07, 2019, 07:00:57 PM »
Here is the link to fresh MacOS build for testing: https://drive.google.com/open?id=1tSzycoUViESd72ZqtsKIKLndEZK9uJ0Q
Let me know how it works now with OpenCL.

Offline trigger2k19

  • *
  • Fractal Friend
  • **
  • Posts: 13
  • Dive Deep, Fly High!
« Reply #11 on: May 07, 2019, 07:40:22 PM »
Hi Buddhi,

i installed the version. It failed, but i think you're on the right track. Follwing Error :

Error: Error during compilation of OpenCL program
Device #0
OpenCL Build log:
<program source>:27:1: error: expected identifier or '('
#include "/Applications/mandelbulber2.app/opencl/engines/displacement_map.cl"
^

See picture.... Any guess ?

Cheers Sascha

Offline buddhi

  • *
  • Fractal Feline
  • **
  • Posts: 157
    • Mandelbulber GitHub repository
« Reply #12 on: May 07, 2019, 07:58:34 PM »
Thank you for the test. You are right. We are on a good track, because only left one error with the file which I just missed.
I have just implemented permanent solution for it. In few minutes will be compiled new dmg file. I will send you a link as soon as the file will be ready.

Offline trigger2k19

  • *
  • Fractal Friend
  • **
  • Posts: 13
  • Dive Deep, Fly High!
« Reply #13 on: May 07, 2019, 08:00:39 PM »
Hi Buddhi,

great looking forward too ! :D :embarrass: :D :thumbs:

Cheers,
Sascha

Offline buddhi

  • *
  • Fractal Feline
  • **
  • Posts: 157
    • Mandelbulber GitHub repository


xx
"Time Span"

Started by cricke49 on Fractal Image Gallery

0 Replies
679 Views
Last post August 02, 2018, 07:05:21 AM
by cricke49
xx
OpenGL font rendering

Started by sjhalayka on Programming

2 Replies
263 Views
Last post April 20, 2020, 05:00:47 PM
by sjhalayka
clip
A new style of fractal imagery using fractal neural style transfer

Started by iRyanBell on Fractal Image Gallery

3 Replies
396 Views
Last post October 03, 2020, 10:50:39 PM
by Jimw338
xx
Birdie Style

Started by gannjondal on Fractal Image Gallery

1 Replies
703 Views
Last post May 08, 2018, 02:39:37 PM
by who8mypnuts
clip
Neural Style Transfer with Fractal Art

Started by reallybigname on Other Artforms

1 Replies
561 Views
Last post July 20, 2019, 04:25:41 PM
by reallybigname