Skip to content

Requesting Support for Treesitter cuda #507

@burlingsmith

Description

@burlingsmith

Language: cuda

The CUDA grammar (https://github.com/tree-sitter-grammars/tree-sitter-cuda) is a small extension of the C++ grammar (https://github.com/tree-sitter/tree-sitter-cpp). There are no additional language structures to add for Aerial tracking that I'm aware of, but Treesitter does track it separately.

/* constructs from C, C++ elided */

// Functions with CUDA specifiers
__global__ void f1() {}
__device__ void f2() {}
__host__ void f3() {}

// Some specifiers can be combined
__device__ __host__ void f4() {}

// Specifiers often placed on their own line
__device__ __host__
void f5() {}

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions