Giter Site home page Giter Site logo

petrushka / vim-opencl Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vim-scripts/opencl.vim

28.0 4.0 8.0 20 KB

Vim plugin for syntax checking and highliting for OpenCL files

Home Page: https://github.com/petRUShka/vim-opencl/

Vim Script 100.00%

vim-opencl's Introduction

SYNOPSIS:

Vim-opencl is a vim plugin that enables syntax highlighting and syntax checker for OpenCL (Open Computing Language) files (*.cl).

Installation

I recommend to use Pathogen (www.vim.org/scripts/script.php?script_id=2332) to organize Vim plugins. In this case you should do following:

cd ~/.vim/bundle
git clone git://github.com/petRUShka/vim-opencl.git

To enable syntax checker functionality you should install following:

OpenCL platform support

Currently, this plugin features support for beignet, pocl, NVIDIA proprietary and AMD proprietary.

Switching computing platforms

Some systems may have multiple computing platforms available. In that case, you can define ‘g:syntastic_opencl_clcc_args` like this:

let g:syntastic_opencl_clcc_args = "-p 1"

where ‘p` is the platform index. You can get the platform index from running `clcc -i`.

With the same way, you might also enable warnings (only supported by some platforms) like this:

let g:syntastic_opencl_clcc_args = "-W"

Authors

Originally, this was fork of www.vim.org/scripts/script.php?script_id=3157 with some little additions. That script provides syntax highlight for OpenCL (Open Computing Language) syntax files (*.cl).

Additionally I added other part of vim plugin such as syntax checker, autodetection file-type, load C-style indent and etc…

vim-opencl's People

Contributors

cctags avatar cuttlebit avatar lcd047 avatar petrushka avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

vim-opencl's Issues

Make the syntax checker work with syntastic

You are advertising syntastic support but that can't actually work right now as it is because it doesn't register in syntastic. Have a look here on how you can easily provide external syntax checker support for syntastic.

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.