Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ManiG

macrumors member
Original poster
Aug 11, 2009
44
0
09 Quad Mac Pro, with flashed 1g XFX 4870 ...

all the OpenCL sample apps from Apple, except for the "hello world" example, are failing.

Can anyone else confirm the same errors on their setup? Just so that I know for sure it is due to the 4870.

I will try putting in my GT120 and see what happens.

Code:
Last login: Sat Aug 29 16:35:11 on ttys002
/Users/mani/Downloads/OpenCL_RayTraced_Quaternion_Julia-Set_Example/build/Debug/qjulia ; exit;
Galactus:~ mani$ /Users/mani/Downloads/OpenCL_RayTraced_Quaternion_Julia-Set_Example/build/Debug/qjulia ; exit;
Creating Texture 512 x 512...
----------------------------------------------------------------------
Using active OpenGL context...
----------------------------------------------------------------------
Connecting to AMD Radeon HD 4870...
----------------------------------------------------------------------
Loading kernel source from file 'qjulia_kernel.cl'...
Error opening file qjulia_kernel.cl
Error: Failed to load kernel source!
Failed to setup compute kernel! Error 1
logout

[Process completed]

Code:
/Users/mani/Downloads/transpose/transpose ; exit;
Galactus:~ mani$ /Users/mani/Downloads/transpose/transpose ; exit;
Error: Failed to load compute program from file!
logout

[Process completed]

And here's output from hello.c, which happens to work:

Code:
Galactus:~ mani$ /Users/mani/Downloads/OpenCL_Hello_World_Example/build/Debug/hello ; exit;
Computed '1024/1024' correct values!
logout

[Process completed]
 
The plot thickens ...

http://netkas.org/?p=164

According to netkas, Radeon support for OpenCL is very poor and he confirms that many demos do not work.

Question is, does this lack of support apply to non-supported (flashed and/or injected) Radeons, or all Radeons including those sold by Apple?
 
bozz2006, do the samples fail in the same way, or do you just have performance issues?

I've had similar slow performance as you for the OpenCLBench_as_terminal_tool ... 4.15 seconds on a 4870.
 
I've only run that one benchmark. Kindly indicate which ones you've tried that have failed. I'll run them and report back.
 
if you wanna some better opencl support for radeons, need to make buzz about it - Apples promised opencl support for radeon 4870 in reality is nothing, support level is less than base level, opencl on radeon doesnt use even half of cards power, and etc....
whine about it on http://discussions.apple.com/forum.jspa?forumID=1339 , in comments to news about snowleopard and etc

otherwise we have a chance to get such a poor support for a long time.
 
bozz, try running this and let us know ...
 

Attachments

  • julia_test.zip
    19.6 KB · Views: 126
screen-capture-8.png


Oh no!
 
netkas, the .cl file is in the same folder as the executable. i confirmed through debugging that it is able to load the .cl file. The problem has to do with the clBuildProgram routine, which is returning error code -11 (CL_BUILD_PROGRAM_FAILURE).

i guess ATI just don't have their "stuff" together with opencl support. frankly i am pretty disappointed in apple advertising the 4870 as being a supported opencl device.

being crippled, performance-wise is one thing, but not being able to run the sample code? come ON!!!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.