ulimit 更改 gcc升级 查看显卡状态命令

一.更改ulimit:

vim /etc/security/limits.conf 

在文件最下方添加以下内容

* soft nofile 65536
* hard nofile 65536

二. gcc升级:

查看可用gcc镜像:

yum install centos-release-scl scl-utils-build

yum list all --enablerepo='centos-sclo-rh'

选GCC安装包

yum install devtoolset-6-gcc.x86_64 devtoolset-6-gcc-c++.x86_64 devtoolset-6-gcc-gdb-plugin.x86_64

定义使用新版本的GCC

scl enable devtoolset-6 bash

三. 查看LINUX下显卡状态

原文地址:https://www.cnblogs.com/lhlucky/p/11641509.html