IC4NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
3 replies Latest Post - ‏2010-07-16T13:32:43Z by Dave_Krolak
2 Posts

Pinned topic Cell/Be programming problem

‏2010-03-06T14:06:56Z |

I am currently programming on the Cell/BE and I have problem I cannot really figure out.

I am sending some floating point data on the SPEs and I executing an if statement upon those data and the result I am getting back is not correct.

I found out that the problem was on the casting of data and corrected it with extra casting on the data while computing the result.

Now I am using compression on my data also and I again have the same problem but it does not work if I use casting again.

If i send the data back to PPE and execute the if statement there I get the correct result but the SPEs don't seem to be able to find the correct result, probably because they are loosing bits somewhere.

If anyone can help, I'll be glad to here him out.

Updated on 2010-07-16T13:32:43Z at 2010-07-16T13:32:43Z by Dave_Krolak
  • einervondenen
    8 Posts

    Re: Cell/Be programming problem

    ‏2010-03-08T16:13:08Z  in response to diavastos
    It is difficult to diagnose your problem without seeing any code so maybe you could paste the code you use so we can all have a look.
    First I would make sure that the data correctly arrived on the SPE (you can use printf if nothing else is available). You can also output the values in hexadecimal format to compare the results you get on the PPE and SPE and see if they match.
    • diavastos
      2 Posts

      Re: Cell/Be programming problem

      ‏2010-03-11T09:36:19Z  in response to einervondenen
      I found the problem after all and corrected some thing in my code and it is working now.
      But I have a more general question.
      Is it possible that during the data transfer from main memory to SPEs or from SPEs to main memory,
      we loose any bits from the data that could result to wrong data in the end?
      • Dave_Krolak
        58 Posts

        Re: Cell/Be programming problem

        ‏2010-07-16T13:32:43Z  in response to diavastos
        of course not - a failure like that would be as costly to Sony as the floating point fiasco was to Intel 10 or 12 years ago