Overview Version History Q & A Rating & Review
XCL Language Support
(Or your chosen license)
Provides syntax highlighting, snippets, and basic language support for the XCL programming language, designed for [briefly describe the purpose of XCL, e.g., GPU programming, custom hardware].
License
MIT License
Features
Syntax Highlighting: Enhanced syntax highlighting for XCL code, including keywords, identifiers, operators, literals, and comments.
Code Snippets: Quickly insert common XCL code structures with predefined snippets (e.g., kernel definitions, if/else statements, for loops).
File Association: Automatically associates .xcl
files with the XCL language mode.
How to Use
Install the "XCL Language Support" extension from the VS Code Marketplace.
Open any file with the .xcl
extension. The language mode will be automatically set to "XCL".
Example
kernel void vector_add(global float* a, global float* b, global float* c, int n) {
int i = get_global_id(0);
if (i < n) {
c[i] = a[i] + b[i];
}
}