Files
rocm-systems/util/vim
Ben Sander 75f691ec2f Add hipHostMallocCoherent, hipHostMallocNonCoherent
Provide per-allocation control over coherent/non-coherent mem.
These overrid the default HIP_COHERENT_HOST_ALLOC setting.
2017-05-24 00:48:10 -05:00
..
2016-01-26 20:14:33 -06:00

How to install?

  1. Add the hip.vim to ~/.vim/syntax/ directory
  2. Add the following text to the end of ~/.vimrc
augroup filetypedetect
 au BufNewFile,BufRead *.cpp set filetype=cpp syntax=hip
augroup END
augroup filetypedetect
 au BufNewFile,BufRead *.c set filetype=c syntax=hip
augroup END
augroup filetypedetect
 au BufNewFile,BufRead *.cu set filetype=cu syntax=hip
augroup END