20161026(day2)
dim3: This type is an integer vector type based on uint3 that is used to specify dimensions. When defining a variable of type dim3, any component left unspecified is initialized to 1.
uint3:
struct __device_builtin__ uint3
{
unsigned int x, y, z;
}
Vim安装YouCompleteMe插件:YouCompleteMe号称Vim的自动补全神器,YouCompleteMe: a code-completion engine for Vim,该项目在github的地址:YouCompleteMe。中文安装教程和github都参考一下。可以免去手动下载安装:
在.vimrc中添加下列代码
Bundle 'Valloric/YouCompleteMe'
保存退出后打开vim,在正常模式下输入
:BundleInstall
等待vundle将YouCompleteMe安装完成
而后进行编译安装:
cd ~/.vim/bundle/YouCompleteMe
./install.py --clang-completer