Git Product home page Git Product logo

cudamasu's Introduction

cudamasu

A simple c++ header that stops intellisense from complaining about cuda stuffs.

Usage

Just copy the header to anywhere you like, add its path to the default include path of your intellisense language server, and set this header as default include, then all is done.

Take clangd as an example. You should add a fragment as below to your global or project-local clangd config. Note that if latter is the case, remember to append --enable-config to the arguments when starts running clangd.

If:
    PathMatch: [.*\.cu, .*\.cuh] # apply to all cuda source files and cuda headers
CompileFlags:
    Add: ["-isystem<where you placed the header>", "--include=cudamasu.h"]

In most cases clangd is capable of handling cuda codes, and in fact this header is modified on the very basis of clang cuda intrinsic headers. The reason I made this hacky thing is that some day I found intellisense of cuda code was not working on another machine of mine, and that sucks.

This header is not fully tested on clangd, and not tested AT ALL on any other language servers. Any PR or issue (though I think there would be none) is welcome.

cudamasu's People

Contributors

sssssaltyfish avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.