.cl OpenCL source code

Text & source code

MIME typetext/x-opencl-src
DescriptionOpenCL source code
AcronymOpenCL – Open Computing Language
CategoryText & source code
Based ontext/x-csrc

Frequently asked questions

What is a .cl file?

A .cl file is a “OpenCL source code” (MIME type text/x-opencl-src). OpenCL stands for Open Computing Language.

How do I open a .cl file?

With any text editor – Notepad++, Visual Studio Code, or gedit and vim on Linux. The file contains readable text, possibly source code or configuration.

How can you tell a genuine .cl file?

No fixed signature at the start of the file is registered for this format; it is recognised mainly by its extension. On Linux and macOS, file --mime-type example.cl shows the guessed type.

Which format is .cl based on?

Technically a .cl file is a subtype of “C source code” (text/x-csrc), so programs for that base format can often read it too.

Which MIME type belongs to .cl?

The MIME type is text/x-opencl-src. In the Apache web server: AddType text/x-opencl-src .cl; in nginx: types { text/x-opencl-src cl; }.

Nearby entries