[Bug 82717] OpenCL support for mandelbulber-opencl
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Sun Aug 17 01:26:07 PDT 2014
https://bugs.freedesktop.org/show_bug.cgi?id=82717
--- Comment #1 from Christoph Haag <haagch at frickel.club> ---
Small additions:
With these patches the binary garbage from the build log is gone:
http://patchwork.freedesktop.org/patch/31309/
http://patchwork.freedesktop.org/patch/31311/
http://patchwork.freedesktop.org/patch/31310/
So this is already fixed.
Problem 4 is not related to mesa I think. The problem is that there is a huge
buffer because CL_DEVICE_MAX_COMPUTE_UNITS is so big.
Curiously CL_DEVICE_MAX_COMPUTE_UNITS gets increased by 100 every time my gpu
wakes up from runpm. I have reduced it to this program:
#include <CL/cl.hpp>
#include <iostream>
int main() {
int err, numberOfComputeUnits = 0;
std::vector<cl::Platform> platformList;
cl::Platform::get(&platformList);
cl_context_properties cprops[3] = { CL_CONTEXT_PLATFORM,
(cl_context_properties) (platformList[0])(), 0 };
cl::Context *context = new cl::Context(CL_DEVICE_TYPE_GPU, cprops, NULL,
NULL, &err);
std::vector<cl::Device> devices = context->getInfo<CL_CONTEXT_DEVICES>();
devices[0].getInfo(CL_DEVICE_MAX_COMPUTE_UNITS, &numberOfComputeUnits);
std::cout << "OpenCL Number of compute units: " << numberOfComputeUnits <<
std::endl;;
return 0;
}
Every time my gpu goes to sleep and wakes up this increases by 100.
I have reduced numberOfComputeUnits in the code to 1.
Then it finally correctly says "clCreateImage() not supported by OpenCL 1.1."
So this will then have to wait for OpenCL 1.2.
But to me it seems these two things should be addressed for 1.0/1.1 already:
* "-cl-denorms-are-zero"
* "cannot combine with previous 'type-name' declaration specifier" (at least
get a better error message into clang)
* CL_DEVICE_MAX_COMPUTE_UNITS (??)
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20140817/a07cc43b/attachment.html>
More information about the dri-devel
mailing list