Just found out why AMD drivers have such bad reputation!

Sunius

Distinguished
Dec 19, 2010
390
0
19,060
While I was browsing on GPU computing stuff, I stumbled upon this:

http://developer.amd.com/tools/heterogeneous-computing/amd-accelerated-parallel-processing-app-sdk/introductory-tutorial-to-opencl/

Needless to say, I was shocked :ouch: :ouch: :ouch:. What do you guys think? :)
 

Sunius

Distinguished
Dec 19, 2010
390
0
19,060
The code is written in a way extremely hard to read. There is no indentation, arguments in function calls are randomly spread: some are on same lines, and some are on different lines. They are basically ignoring one of the basic programming ethics: "Don't write obfuscated code".