Give us a proper mimetype name for OpenCL C files!

综合编程 2017-04-28

KDevelop, your cross-platform IDE
, since version 5.1 has initial OpenCL language support

If you are into OpenCL and interested, we need your help for some improvement to that:

What is the mimetype name to use for OpenCL C files?

Due to KDevelop needs some weeks ago a mimetype for OpenCL has already been added
to the shared-mime-info database
, with text/x-opencl-src
as mimetype name.

Though if we reflect, that entry was quickly requested and made without consulting a lot of OpenCL users. It currently reads:

    OpenCL source code
    Open Computing Language

For one, “OpenCL source code” should be rather “OpenCL C source code”. Because there are now both C and C++ variants (see below) which would need to be reflected in the name.

Next, text/x-opencl-src
was made up and seems to be not used by anyone before. Asking your search engine, you will see that people in their desperation had already started to use all kind of other mimetype names before, e.g.:

  • text/x-opencl
  • text/x-clsrc
  • text/x-opencl_c
  • application/x-opencl_c

So text/x-opencl-src
might not have been the best choice. Even more as again the C and C++ variants need to be reflected in the name.

Is there no-one at the Khronos Group who had time to look at deciding on a mimetype name and registering that with IANA as MIME type (or now Media type)

Can you poke them, or hint us whom to talk to?

OpenCL C++

And then there is OpenCL C++
(since OpenCL 2.1
), yet to reach the masses.

What mimetype name shall it have? What will the file extension(s) be?

Attracted by virtual constructs

责编内容by:Attracted by virtual constructs (源链)。感谢您的支持!


Apple Deprecates OpenGL and OpenCL macOS 10.14 This article summarizes the key developer-related features intr...
BrandPost: OpenCL Is for GPUs Too OpenCL started as a solution for GPUs, but it has recently received a lot of ...
Is it set to write on the same buffer from differe... I have OpenCL 1.1, one device, out of order execution command queue, and want...
macOS 10.14 Mojave和iOS 12弃用OpenGL与OpenCL,并鼓励过渡到Met... 苹果已宣布弃用OpenGL和OpenCL!在macOS 10.14 Mojave中完全杀死OpenGL和OpenCL,转而采用自己的Metal技术。 ...
Apple Depreciates OpenGL and OpenCL in MacOS Apple has announced today in a post on it's Developer page , that OpenGL and...