Welcome to Fractal Forums

Fractal Software => Bug Reporting => Topic started by: the5thfool on July 19, 2014, 03:47:12 PM




Title: Mandelbulber OpenCL 1.21-1 error
Post by: the5thfool on July 19, 2014, 03:47:12 PM
Windows 7 Professional SP1
Intel i7-4770k
AMD R9 280x

I was animating IFS parameters.  Mandelbulber was able to render 2251 frames last night using OpenCL (FULL) without issue, but throws the following error for frame 2252.

ERROR: ComamndQueue::nqueueNDRangeKernel(jobSize), jobSize = 8192 (-4)

I thought it was the frame, it seemed to start working again if I advance past key 23 and start the animation at 2352 (100 frames/key).  Unfortunately about 3 frames in, it died with the same message.

It seems more related to me trying to interact with Mandelbulber while it is blocking waiting for the video card to return a frame in progress, but I didn't have this much of an issue last night.  Any ideas/workarounds?


Title: Re: Mandelbulber OpenCL 1.21-1 error
Post by: the5thfool on July 19, 2014, 09:19:32 PM
Additional info:

I've narrowed down the error to line 635 of cl_support.cpp, due to the typo and inclusion of stepSize.

Code:
err = queue->enqueueNDRangeKernel(*kernel, cl::NullRange, cl::NDRange(stepSize), cl::NDRange(workGroupSize));
                                sprintf(errorText, "ComamndQueue::nqueueNDRangeKernel(jobSize), jobSize = %d", stepSize);
                                if (!checkErr(err, errorText)) return;

Easy to find, but I'm not sure why yet.




Title: Re: Mandelbulber OpenCL 1.21-1 error
Post by: Buddhi on July 19, 2014, 09:51:35 PM
Send me settings file for this keyframe. I will try look what could be wrong.


Title: Re: Mandelbulber OpenCL 1.21-1 error
Post by: the5thfool on July 20, 2014, 01:14:56 AM
Sent from my Gmail, let me know if you need anything else.


Title: Re: Mandelbulber OpenCL 1.21-1 error
Post by: the5thfool on July 20, 2014, 06:45:17 AM
I'm not sure it's that frame now; MB seems to have gotten past it whatever hiccup it was experiencing.  Maybe it was just some contention over the GPU?


Title: Re: Mandelbulber OpenCL 1.21-1 error
Post by: Buddhi on July 20, 2014, 08:27:24 AM
Have you tried to reduce "max GPU mem to use" parameter (on OpenCL tab)? On this keyframe Mandelbulber tries to allocate bigger buffer and OpenCL error -4 is CL_MEM_OBJECT_ALLOCATION_FAILURE


Title: Re: Mandelbulber OpenCL 1.21-1 error
Post by: the5thfool on July 20, 2014, 04:39:10 PM
Reduce?  Interesting, I had been increasing it thinking that the memory was pre-allocated.  The card has 3 Gb of memory, I didn't think there would be much difference changing max memory from 256 to 512 Mb.  Thank you for your help!


Title: Re: Mandelbulber OpenCL 1.21-1 error
Post by: Buddhi on July 20, 2014, 08:04:33 PM
Memory is allocated dynamically. If rendering is faster then it uses bigger memory buffer to have enough big jobs to utilize desired time defined by processing cycle time.