luqmana/rust-opencl — pull request #50 by kazimuth (2014-12-24 00:50:19+00:00)
Title: Fix platform information functions & add platform info

There were some issues with the diagnostic functions - `Platform.profile_info` plain didn't work (always returned an apparently-empty string), and `Device.name` did unnecessary allocation, and passed `clGetDeviceInfo` out parameters of (potentially) incorrect types.

I discovered the problems with the information functions when I was trying to write a program that would display information about the opencl implementation on the system, something like `glxinfo`. I figured I would include that for good measure, but I can remove it if need be.