Logo by AGUS - Contribute your own Logo!

END OF AN ERA, FRACTALFORUMS.COM IS CONTINUED ON FRACTALFORUMS.ORG

it was a great time but no longer maintainable by c.Kleinhuis contact him for any data retrieval,
thanks and see you perhaps in 10 years again

this forum will stay online for reference
News: Did you know ? you can use LaTex inside Postings on fractalforums.com!
 
*
Welcome, Guest. Please login or register. August 21, 2019, 01:51:03 AM


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 [2]   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.19 - OpenCL - user defined formulas management  (Read 4207 times)
0 Members and 1 Guest are viewing this topic.
Buddhi
Fractal Iambus
***
Posts: 895



WWW
« Reply #15 on: December 15, 2013, 10:54:13 AM »

I have tried all possible methods to avoid this problem (double quotes, put files into program folder...). This is known bug in OpenCL compiler. Till yesterday I knew that it was only for nVidia driver. But now I see that it also happens for AMD. The worst is that I can't reproduce this problem on my machine (it uses double quotes properly - AMD under Vista). I also took into consideration to load mandelbulber_cl_data.h file in the same way like other files. Unfortunately this method will make difficult debugging the code (numbers of code lines will be wrong when compile error occurs). I also can't hardcode path in #include command, because under different systems this path can be different.
Only idea what I can change is location of includes. What will be the best folder under Windows instead of "Program files" which has no spaces in path?
Logged

R-TEAM
Forums Freshman
**
Posts: 12


« Reply #16 on: December 15, 2013, 10:54:25 PM »

Hi,

have the exactly same problem on my second workstation (IBM QuadCore) with Win7Pro64SP1 too...
(GFX Card here an AMD HD4850 - so an different driver)
Maybe Win7 related ? (or the German version ? )

Regards
R-TEAM
Logged
R-TEAM
Forums Freshman
**
Posts: 12


« Reply #17 on: December 15, 2013, 10:57:06 PM »

Hi,

......What will be the best folder under Windows instead of "Program files" which has no spaces in path?


Simply - create an folder (like OpenCL directly on C:\ -> C:\OpenCL ) - if the known problem is gone with the compiler, the folder can be deleted/moved back to the programm folder ...

Regards
R-TEAM
Logged
JohnVV
Conqueror
*******
Posts: 123


having fun


« Reply #18 on: December 16, 2013, 07:56:25 AM »

Not just "no blank spaces" but under win7 people have been having all kinds of major problems with MS's " Program Files" and windows royally messed up UAC ( read as FUBAR'ed UAC )

non "Administrator" accounts sometimes can not write to the program folder if it is in "Program Files"

a good option might be
C:\\Mandelbulber
or
C:\\MandelbulberOpenCL
or ( if you do not want to type a long name into "cmd.exe"  or did not turn on "Open CMD here" in win7 )
C:\\MCL
Logged

Running OpenSUSE 42.1-64bit & ScientificLinux-6.7-64bit
I don't pitch Linux to my friends,I let Microsoft do it for me!"
Buddhi
Fractal Iambus
***
Posts: 895



WWW
« Reply #19 on: December 17, 2013, 09:11:37 PM »

I have developed some nice workaround for this problem. I read in many forums that there is not possible to pass any parameter with spaces for OpenCL compiler (e.g. -I include path, -D define....). I started to look for alternative way to put something directly but dynamically into code. I use following method:

- in OpenCL kernel instead of #include "mandelbulber_cl_data.h" I use macro #include INCLUDE_PATH_CL_DATA
- in C++ code I stitch following header before first file with the code: #define INCLUDE_PATH_CL_DATA "/usr/share/mandelbulber/cl/mandelbulber_cl_data.h" (or some other, depends on OS and program folder path)
- additionally first line of the kernel code is modified to stat with double slash (//*********************). Then "#define..." will be in the first line of kernel code and don't make any additional line. So when there will be any compiler error I will still have proper line numbers.

This method passed first trials, so it looks promising

Logged

mclarekin
Fractal Senior
******
Posts: 1739



« Reply #20 on: December 18, 2013, 04:36:17 AM »

Buddhi. Cant wait to try it out as I too have been stopped by error -43 on AMD A10-5800GHz Radeon HD 7660D, plus my crappy laptop AMD. I had wondered why in GPU Caps Viewer the Open CL demos worked but Mandelbulber wouldn't compile.
Logged
R-TEAM
Forums Freshman
**
Posts: 12


« Reply #21 on: December 18, 2013, 03:08:39 PM »

Hi,

yea - an nice running OpenCL part would be nice - for next year an GFX Card upgrade to S10000 is planed ... and the beast need numbers to crunch tongue stuck out

Regards
R-TEAM
Logged
Buddhi
Fractal Iambus
***
Posts: 895



WWW
« Reply #22 on: December 28, 2013, 09:48:46 AM »

This method to fix the problem with include path works well (tested under Linux with AMD and nVidia and under Win Vista with AMD). I think it is good information for all nVidia users (some AMD also). Today I released version 1.20 which should work properly with OpenCL under Windows.
Visit and comment in new thread: http://www.fractalforums.com/releases-b233/re-mandelbulber-1-20/msg69690/#new
Logged

Pages: 1 [2]   Go Down
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
Mandelbulber 1.17 - OpenCL Releases « 1 2 3 4 » Buddhi 49 8794 Last post October 15, 2013, 10:03:11 PM
by Buddhi
Quarternion Custom Formulas in OpenCL Mandelbulber 1.21 Tutorials mclarekin 8 1552 Last post December 06, 2014, 02:08:48 AM
by mclarekin
Burning Ship Mandelbulber 1.21 OpenCL Custom Formulas Tutorials mclarekin 12 9979 Last post December 08, 2014, 06:15:28 PM
by youhn
Decreasing Render Time with OpenCL Mandelbulber 1.21 Custom Formulas Tutorials mclarekin 0 1463 Last post December 06, 2014, 12:01:47 AM
by mclarekin
OpenCl custom formulas Feature Requests paigan0 5 1395 Last post April 01, 2017, 05:59:20 PM
by mancoast

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.112 seconds with 29 queries. (Pretty URLs adds 0.007s, 2q)