1 源码包安装
(1) 配置环境:yum install elfutils-libelf-devel;yum install perl;
yum install -y gcc;yum install -y kernel-headers kernel-devel
(2)安装cuda头文件:
unzip partial_install_cuda_header.zip
cd partial_install_cuda_header
./install-cuda-header.sh
(3)编辑/etc/profile文件,配置环境变量:
export PATH=$PATH:/usr/local/cuda-10.2/bin:/usr/local/openmpi/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-10.2/lib64
export CUDA_HOME=/usr/local/cuda
(4)生效环境变量:source /etc/profile
(5)安装SDK:./ corex-installer-linux64-4.3.0_x86_64_10.2.run,只选择安装toolkit选项进行安装。
安装驱动:./ corex-driver-linux64-4.3.0_x86_64_10.2.run
安装工具:./corex-toolbox-x86_64-1.0.0.run
(6)编辑vim ~/.bashrc在其中添加:
export PATH=/usr/local/corex-4.3.0/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/corex-4.3.0/lib:/usr/local/corex/lib64:$LD_LIBRARY_PATH
配置完成后保存退出,刷新环境变量source ~/.bashrc
(7)输入ixsmi,查看是否有输出
