b319209299
Note hipHostMalloc (not hipHostAlloc or hipMallocHost).
- the hipHost* is used for all HIP APIs dealing with Host memory.
(including hipHostMalloc, hipHostFree, hipHostRegister,
hipHostUnregister, hipHostGetFlags, hipHostGetDevicePointer).
- hipMallocHost is consistent with "hipMalloc" for allocating device
memory. Enumerations hipHostMalloc* also used as optional
flags parm to hipHostMalloc.
[ROCm/hip commit: ab910efb96]
How to install?
- Add the
hip.vimto~/.vim/syntax/directory - 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