Dear Mario, before I saw your reply I tried to follow the Mathworks advice to use the AMDPRO drivers, this involved downgrading to Ubuntu 16.10 and making sure to NOT update the kernel or X. I installed 17.30 of the AMDPRO drivers and now MATLAB works great, 2D and 3D speed in bench() is the fastest I've seen and 3D transparent figures draw and update quickly.
--> THAT was their advice?!?!? How incompetent and irresponsible can one be and still sell very expensive, and at the same time badly engineered products to customers???
I told you already the graphics drivers were not at fault *at all*. This is clearly a Matlab bug, caused by intentional refusal of Mathworks to do the job you are paying them to do, to save them a few bucks on quality assurance. The same bug btw. causes various problems on macOS and Windows as well, since many years, just in other areas than failure of the graphics drivers. Apparently Mathworks just doesn't care about proper software engineering in some areas. I guess as long as the money flows...
If you had installed the matlab-support package as adviced it would probably have fixed it, by the operating system doing the job Mathworks engineering should have done many years ago.
Now you use a proprietary graphics driver with known limitations on an operating system version that has reached its end-of-life a couple of weeks ago and will not receive any software updates or security updates anymore, and thereby leave you more vulnerable to attacks.
The amdgpu-pro 17.30 driver is a substantial improvement over the previous versions, as i worked with the developers of the open-source part of the driver at AMD to get most issues fixed, partially by me developing bug fixes and improvements and them accepting them into the new driver release, partially be them swiftly fixing problems. It's so pleasant to work with developers that actually care about the quality of their products, instead of most proprietary software vendors. Almost everytime i have to deal with proprietary software vendors, i can't eat as much as i want to puke.
The three remaining known bugs, mostly in the proprietary OpenGL library, have been internally reported to the relevant team inside AMD, but when those will finally get fixed is out of my control:
- 1 bug is in the open-source component, and that one will resolve itself, once the amdgpu-pro driver supports Linux kernel 4.10. It is already resolved for Linux 4.9, so downgrading to kernel 4.9 would have been a much better idea than downgrading to Ubuntu 16.10. I assume AMD will update their drivers soon, but if not, i can fix that bug with a simple workaround in a PTB release.
- 2 bugs are in the proprietary OpenGL library, whose use is almost never necessary, unless you listen to the idiotic advice from Mathworks. One bug causes a PTB-Warning about broken swap scheduling, which is mostly inconsequential in practice, apart from the scary warning, as PTB can work around the issues. The fallback code path could cause more missed flip deadlines under demanding system workloads though - still not as bad as any typical Windows or macOS system though. The other more serious bug will cause random occasional hard crashes of Matlab or Octave during calls to Screen 'OpenWindow' or when closing an onscreen window. Nothing we could do about it, apart from hoping for a fix by AMD's proprietary OpenGL team. They know about the bug, but apparently it wasn't affecting enough users of the pro driver to be a high priority to fix for the 17.30 release. So obviously save all experiment date before closing the onscreen window if you want to continue to follow Mathworks dumb advice.
BUT there is a conflict with PTB. Rather than spam the forums with log dumps, I've made a bug on github:
yeah, the missing glut library. Installing from Neurodebian automatically takes care of all dependencies. For a fully manual install via DownloadPsychtoolbox, this is what our installer tells you:
"* The OpenGL utility toolkit GLUT: glut, glut-3 or freeglut are typical provider packages in most Linux distributions."
My bet would be on a package called freeglut or similar.
The only reason to use parts of the amdgpu-pro driver on a current Linux system is if you want to use some special displays which only the pro low-level display driver can handle perfectly at the moment, e.g., some very high refresh rate monitors in the >= 144 Hz range (BenQ Zowie, and some ASUS ROQ PG models with defective monitor firmware come to mind).
The other reason is if you wanted to use the brand-new AMD VEGA gpu's, who afaik go into sale today.
In both cases there isn't any need to install the full driver with the proprietary OpenGL library, regardless what Mathworks incompetent "customer support" may tell you. One way to get the good low-level open-source bits of the pro driver without the problematic proprietary high level component is to install this kernel package with a suitable enhanced Linux 4.12 kernel provided for Ubuntu by Phoronix
-mario
Ian