Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

OpenCL for Visual Studio Code

License

NotificationsYou must be signed in to change notification settings

Galarius/vscode-opencl

Repository files navigation

Visual Studio Marketplace DownloadsVisual Studio Marketplace InstallsVisual Studio Marketplace Rating

This extension addsOpenCL C/C++ language support toVS Code.

Features

  • Auto Completion of Built-in OpenCL Symbols
  • Built-in OpenCL API Reference
  • Code Snippets
  • Kernel Diagnostics
  • Kernel Formatting
  • Offline Kernel Compilation
  • OpenCL C/C++ Syntax Highlighting
  • OpenCL Compute Kernel Support (*.cl,*.ocl)
  • OpenCL Devices Information

Prerequisites

FeatureRequirements
Kernel DiagnosticsOpenCL Runtime [Intel,NVidia,AMD]
OpenCL Devices InformationOpenCL Runtime [Intel,NVidia,AMD]
Offline Kernel CompilationIntel® SDK for OpenCL™ 2019 [Windows, Linux] orOpenCL.framework [macOS] (shipped with XCode)
Kernel FormattingFormatting feature requiresclang-format. By default, the extension searches for the utility insidems-vscode.cpptools extension.

Configuration

SettingDescription
Kernel Diagnostics
OpenCL.server.enableEnables OpenCL Language Server.
OpenCL.server.buildOptionsBuild options to be used for building the program. The list ofsupported build options.
OpenCL.server.deviceIDDevice ID or 0 (automatic selection) of the OpenCL device to be used for diagnostics. Use theOpenCL: Select command or theOpenCL Devices explorer actions to specify the identifier.
OpenCL.server.maxNumberOfProblemsControls the maximum number of problems produced by the server.
opencl.trace.serverTraces the communication between VS Code and the OpenCL language server.
OpenCL Devices Information
OpenCL.explorer.localizedPropertiesShow localized properties of OpenCL devices in the explorer view (uncheck to show raw OpenCL properties).
Kernel Formatting
OpenCL.formatting.nameDefault formatting utility is 'clang-format', which is shipped withms-vscode.cpptools extension. Specify an absolute path to use another version ofclang-format.

Commands

CommandDescription
OpenCL: InfoThis command opens a new VS Code tab filled with the information about available OpenCL devices
OpenCL: SelectSelect the OpenCL device for kernel diagnostics
OpenCL: Toggle ViewToggle the explorer view (display localized or raw properties)

Offline Kernel Compilation

This extension provides predefined set of VS Code tasks for kernel compilation usingioc32/ioc64 oropenclc (on macOS).

SeeTASKS.md for details.

SeeFAQ.md for known issues.


Development

Seedevelopment notes.

Contributing

Contributing Guide

Change Log

OpenCL for VS Code Change Log

License

MIT License

Disclaimer

OpenCL is the trademark of Apple Inc.

Sponsor this project

  •  

Contributors3

  •  
  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp