cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

msoos
Adept I

OpenCL compiler bugs

I can trigger 3  bugs in the OpenCL compiler for which I can supply code:

  • The compiler crashes in case of infinite loop and "-cl-opt-disable". Just put a goto and it segfaults.
  • The compiler from ~2011:

$ md5sum libamdocl64.so

d55c853a7b8c892576eb2355298ca59f  libamdocl64.so

is 30% faster on a piece of code (when "-cl-opt-disable" is given) than the new compiler (with or without the "-cl-opt-disable"):

$ md5sum libamdocl64.so

7d2a234f375b693d9d2e71bf93f28edf  libamdocl64.so


  • The OpenCL compiler miscompiles a piece of code. I know people at this point stop reading, but I know what I am talking about. I have wrestled with a bug in gcc before (and had it reported&confirmed&fixed). It is a miscompiled, it's easy to check and verify.

I have separate codes that triggers every one of these. Unfortunately, it's not public code, but I would be happy to share them with any AMD developer. I have been using the old compiler from 2011 for some while, but it crashes when compiling for 7970's, so I am forced to use 7d2a234f375 (13.4), but that miscompiles, so I am in a deadlock. I would really appreciate if the miscompilation issue would be fixed. I think it's very little to ask, to be honest.

0 Likes
3 Replies
himanshu_gautam
Grandmaster

Thanks for sharing your views.

1. I will probably try to check it myself. In case you know more specific situation for this bug, let us know.

2. Can you tell the catalyst version of the 2011 driver that is 30% faster than 13.4. also for what application is it that fast? Can you share some repro-case.

3. Again, I have seen many similar wrong compilation issues with 13.4. Can you check with 12.10 driver here? Also a repro-case would be helpful in fixing the invalid compilation. Probably you can send the testcase via private messages. I will add you as friend.

0 Likes
himanshu_gautam
Grandmaster

I have sent you a private message. Please check.

Do you still observe these issues?  If so, could you provide us with the testcase(s)?

0 Likes