Skip to content

Releases: Galarius/vscode-opencl

0.5.0

19 Sep 16:20
Compare
Choose a tag to compare

Version 0.5.0: September 19, 2018

Offline OpenCL Kernel Compilation

The extension provides predefined set of VS Code tasks for kernel compilation using ioc32/ioc64 or openclc (on macOS).

Run Predefined Task

  1. Press Tasks > Run Task...

  2. Press Run Task... and select one of the predefined opencl tasks for file kernel.cl. The set of tasks (fig. 1) is generated for each kernel file that was found in the current workspace.

    fig 1

    Figure 1. Predefined Tasks for ioc64 compiler.

Customize Build Task

Press Tasks > Configure Tasks.... Select one of the predefined opencl tasks. File tasks.json will be created (or extended) with configuration of the selected task.

You can override command and args fields to use another compiler. Field label is a displayed task name, problemMatcher should be overriten to match a compiler's errors and warnings so messages could be displayed in Problems view.

An example of modified tasks.json configuration file for using AMD Mali as OpenCL offline compiler:

{
    "version": "2.0.0",
    "tasks": [
        {
            "type": "shell",
            "label": "opencl: malisc compile",
            "task": "compile",
            "command": "malisc",
            "args": [
                "--name kernelName",
                "kernel.cl"
            ],
            "problemMatcher": [
                {
                    "owner": "opencl",
                    "fileLocation": ["relative", "${workspaceFolder}"],
                    "pattern": {
                        "regexp": "^(ERROR|WARNING): <(.*)>:(\\d+):(\\d+): (error|warning): (.*)$",
                        "file": 2,
                        "line": 3,
                        "column": 4,
                        "severity": 1,
                        "message": 6
                    }
                }
            ],
            "group": {
                "kind": "build",
                "isDefault": true
            }
        }
    ]
}

0.4.0

21 Aug 21:40
Compare
Choose a tag to compare

Version 0.4.0: August 22, 2018

  • Added auto closing pairs (brackets and quotes)

  • Added clinfo binary supporting OpenCL: Info command on Linux (Requirements: OpenCL drivers and runtime libraries)

  • node-sshpk and url-parse dependencies were updated due to potential security vulnerability in older versions.

0.3.0

07 Jul 11:27
Compare
Choose a tag to compare

Version 0.3.0: July 07, 2018

  • Added: Support for external formatters (e.g. AStyle)

vscode-opencl-formatting

0.2.1

28 Apr 12:48
Compare
Choose a tag to compare
  • Hoek dependency was updated due to potential security vulnerability in older version.

v0.2.0

11 Mar 15:07
Compare
Choose a tag to compare
  • Added: Hover tooltip for OpenCL Runtime.

    vscode-opencl-cmd-oclinfo

  • Added: New icon with transparent background.

    icon

v0.1.5

13 Jan 10:13
Compare
Choose a tag to compare
  • Fixed: Types ushort, uint, size_t, intptr_t, uintptr_t were not highlighted.

v0.1.5-pre

03 Jan 11:30
Compare
Choose a tag to compare
v0.1.5-pre Pre-release
Pre-release
  • Fixed highlighting (#3 ). The following types were added: ushort, uint, size_t, intptr_t, uintptr_t.

v0.1.4

02 Jan 19:26
Compare
Choose a tag to compare
  • Fixed #2 : Toggle Line Comment and Toggle Block Comment commands didn't work in *.cl files;

  • Fixed #3 : Unsigned types and types with _t at the end were not highlighted for some color themes.

v0.1.3

29 Oct 14:32
Compare
Choose a tag to compare

Added command OpenCL: Info to show OpenCL platforms/devices info.

vscode-opencl-cmd-oclinfo

Only Win32 and macOS are supported.

Requirements: OpenCL drivers and runtime libraries.

v0.1.2

03 Oct 10:17
Compare
Choose a tag to compare
  • Added Code Snippets for host OpenCL functions
  • Added Code Snippets for device OpenCL functions