Skip to content

Latest commit

 

History

History
55 lines (38 loc) · 1.7 KB

README.md

File metadata and controls

55 lines (38 loc) · 1.7 KB

OpenCL Language Server

Build status

Supported Capabilities:

  • textDocument/publishDiagnostics

Prerequisites

OpenCL Language Server requires OpenCL Runtime [Intel, NVidia, AMD]

Parameters

You can configure diagnostics with json-rpc request during the intitialization:

{
    "jsonrpc": "2.0",
    "id": 0,
    "method": "initialize",
    "params": {
        "initializationOptions": {
            "configuration": {
                "buildOptions": [],
                "deviceID": 0,
                "maxNumberOfProblems": 127
            }
        }
    }
}

Options

buildOptions Options to be utilized when building the program. The list of supported build options.
deviceID Device ID or 0 (automatic selection) of the OpenCL device to be used for diagnostics.
Run ./opencl-language-server clinfo to get information about available OpenCL devices including identifiers.
maxNumberOfProblems Controls the maximum number of errors parsed by the language server.

Development

See development notes.

License

MIT License

Disclaimer

OpenCL is the trademark of Apple Inc.