OpenCL problems with flashed 4870?

Discussion in 'Mac Pro' started by ManiG, Aug 29, 2009.

  1. ManiG macrumors member

    Joined:
    Aug 11, 2009
    #1
    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]
    
     
  2. ManiG thread starter macrumors member

    Joined:
    Aug 11, 2009
    #2
    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?
     
  3. bozz2006 macrumors 68030

    bozz2006

    Joined:
    Aug 24, 2007
    Location:
    Minnesota
    #3
    My OE Apple 4870 performs very poorly as well.
     
  4. ManiG thread starter macrumors member

    Joined:
    Aug 11, 2009
    #4
    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.
     
  5. bozz2006 macrumors 68030

    bozz2006

    Joined:
    Aug 24, 2007
    Location:
    Minnesota
    #5
    I've only run that one benchmark. Kindly indicate which ones you've tried that have failed. I'll run them and report back.
     
  6. maghemi macrumors 6502

    Joined:
    Aug 7, 2009
    Location:
    Melbourne Australia
    #6
    hmm, that's a bit of a bugger. I hope that doesn't translate into problems when running things other than the demo's
     
  7. netkas macrumors 65816

    Joined:
    Oct 2, 2007
    #7
    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.
     
  8. ManiG thread starter macrumors member

    Joined:
    Aug 11, 2009
    #8
    bozz, try running this and let us know ...
     

    Attached Files:

  9. rnb2 macrumors regular

    Joined:
    Jan 23, 2006
    Location:
    West Haven, CT, USA
    #10
    Guess I won't be in a hurry to replace my (completely unsupported) 3870 with a (poorly-supported) 4870.
     
  10. netkas macrumors 65816

    Joined:
    Oct 2, 2007
    #11
    it cant read cl file,

    you need to open terminal, cd into dir with files and run executable
     
  11. bozz2006 macrumors 68030

    bozz2006

    Joined:
    Aug 24, 2007
    Location:
    Minnesota
    #12
    does that mean just opening terminal, dragging the command into the window and pressing enter?
     
  12. netkas macrumors 65816

    Joined:
    Oct 2, 2007
    #13
    no


    welll, this test doesnt work on radeons anyway, matrix transpose worked
     
  13. ManiG thread starter macrumors member

    Joined:
    Aug 11, 2009
    #14
    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!!!
     

Share This Page