CentOS 8.5环境配置

在CentOS 8.5系统下配置高性能计算环境。主要包含编译器套件、分布式并行套件、各种数值计算库、Python环境、辅助管理工具、GPU开发环境等。利用CentOS自带的RPM仓库,加上OpenHPC和Intel oneAPI仓库,大体上能满足yum和dnf安装需求!

安装配置过程零零散散,特汇集一处,随时增量完善,以备忘!


工具命令

  • yum
  • dnf
  • module

安装源仓库

  • repolist

    # dnf repolist
    仓库 id                             仓库名称
    OpenHPC                             OpenHPC-2 - Base
    OpenHPC-updates                     OpenHPC-2 - Updates
    appstream                           CentOS Linux 8 - AppStream
    baseos                              CentOS Linux 8 - BaseOS
    cudnn-local-rhel8-8.5.0.96          cudnn-local-rhel8-8.5.0.96
    epel                                Extra Packages for Enterprise Linux 8 - x86_64
    extras                              CentOS Linux 8 - Extras
    oneAPI                              Intel(R) oneAPI repository
  • OpenHPC仓库包含很多HPC开发所用的工具和数学库(比如,SuperLU和MUMPS)

  • 安装Intel oneAPI 仓库(包含rpm安装包)

    yum install intel-oneapi-toolkit-release-ohpc
    
  • 搜索powertools会有很多rpm安装包

    dnf --enablerepo=powertools search openblas-devel
    
  • 安装environment-modules可以使用module管理配置开发环境

    $ rpm -qa | grep env
    environment-modules-4.5.2-1.el8.x86_64
    
  • 安装conda-4.10.3, 用conda管理python环境

    # rpm -qa | grep conda
    anaconda-gui-33.16.5.6-1.el8.x86_64
    conda-4.10.3-1.el8.noarch
    libreport-anaconda-2.9.5-15.el8.x86_64
    python3-conda-4.10.3-1.el8.noarch
    anaconda-core-33.16.5.6-1.el8.x86_64
    anaconda-widgets-33.16.5.6-1.el8.x86_64
    anaconda-tui-33.16.5.6-1.el8.x86_64
    anaconda-user-help-8.3.3-1.el8.centos.noarch
    python3-conda-package-handling-1.7.3-2.el8.x86_64
    
  • ~/.bashrc内容

    $ cat  .bashrc
    # .bashrc# Source global definitions
    if [ -f /etc/bashrc ]; then. /etc/bashrc
    fi# User specific environment
    PATH="$HOME/.local/bin:$HOME/bin:$PATH"
    export PATHexport PS1='\u@\h \w \n\$ '# Uncomment the following line if you don't like systemctl's auto-paging feature:
    # export SYSTEMD_PAGER=# User specific aliases and functions#load mpich
    #module load /usr/share/modulefiles/mpi/mpich-x86_64#load openmpi env
    module load /usr/share/modulefiles/mpi/openmpi-x86_64#load nvhpc env
    #module load /opt/nvidia/hpc_sdk/modulefiles/nvhpc/22.2#export KOKKOS_PATH=~/local.optexport PATH=$PATH:/usr/local/cuda/bin
    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib64# >>> conda initialize >>>
    # !! Contents within this block are managed by 'conda init' !!
    __conda_setup="$('/usr/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
    if [ $? -eq 0 ]; theneval "$__conda_setup"
    elseif [ -f "/usr/etc/profile.d/conda.sh" ]; then. "/usr/etc/profile.d/conda.sh"elseexport PATH="/usr/bin:$PATH"fi
    fi
    unset __conda_setup
    # <<< conda initialize <<<
    
  • 其他版本gcc-toolset

    $ yum search gcc-toolset
    上次元数据过期检查:1:03:17 前,执行于 2023年03月07日 星期二 13时12分30秒。
    ============================================================== 名称 和 概况 匹配:gcc-toolset ==============================================================
    gcc-toolset-10.x86_64 : Package that installs gcc-toolset-10
    gcc-toolset-10-runtime.x86_64 : Package that handles gcc-toolset-10 Software Collection.
    gcc-toolset-11.x86_64 : Package that installs gcc-toolset-11
    gcc-toolset-11-runtime.x86_64 : Package that handles gcc-toolset-11 Software Collection.
    gcc-toolset-9.x86_64 : Package that installs gcc-toolset-9
    gcc-toolset-9-runtime.x86_64 : Package that handles gcc-toolset-9 Software Collection.
    ================================================================== 名称 匹配:gcc-toolset ==================================================================
    gcc-toolset-10-annobin.x86_64 : Annotate and examine compiled binary files
    gcc-toolset-10-binutils.x86_64 : A GNU collection of binary utilities
    gcc-toolset-10-binutils-devel.i686 : BFD and opcodes static and dynamic libraries and header files
    gcc-toolset-10-binutils-devel.x86_64 : BFD and opcodes static and dynamic libraries and header files
    gcc-toolset-10-build.x86_64 : Package shipping basic build configuration
    gcc-toolset-10-dwz.x86_64 : DWARF optimization and duplicate removal tool
    gcc-toolset-10-dyninst.x86_64 : An API for Run-time Code Generation
    gcc-toolset-10-dyninst-devel.x86_64 : Header files for compiling programs with Dyninst
    gcc-toolset-10-elfutils.x86_64 : A collection of utilities and DSOs to handle ELF files and DWARF data
    gcc-toolset-10-elfutils-debuginfod-client.i686 : Library and command line client for build-id HTTP ELF/DWARF server
    gcc-toolset-10-elfutils-debuginfod-client.x86_64 : Library and command line client for build-id HTTP ELF/DWARF server
    gcc-toolset-10-elfutils-debuginfod-client-devel.i686 : Libraries and headers to build debuginfod client applications
    gcc-toolset-10-elfutils-debuginfod-client-devel.x86_64 : Libraries and headers to build debuginfod client applications
    gcc-toolset-10-elfutils-devel.i686 : Development libraries to handle compiled objects
    ...
    
  • NVHPC和CUDA开发安装包需要去NVIDIA官网下载安装,用module配置加载


网络资料

  • OPENHPC搭建集群

CentOS 8.5高性能计算开发环境配置备忘相关推荐

  1. CentOS 7配置LNMP开发环境及配置文件管理详解

    本篇文章主要介绍了CentOS 7配置LNMP开发环境及配置文件管理,详细的介绍了MySQL 5.6,PHP 5.6,Nginx的安装与配置,有兴趣的可以了解一下. 安装并配置MySQL 5.6 从C ...

  2. Manjaro启动项目及服务配置备忘

    Manjaro启动项目及服务配置备忘 =============== 系统服务GUI管理 搜索 systemdgenie 并安装,类似Windows的服务管理. ================ 系统 ...

  3. nginx php spawn-fcgi,搭建CentOS+NGINX+Spawn-fcgi+CPP开发环境

    搭建RPC服务器的方案有很多,其中就是有基于C++语言的.今天尝试搭建了个CentOS+NGINX+Spawn-fcgi+CPP的开发环境. 一.安装CentOS.Nginx 二.安装GCC.GCC- ...

  4. 生产服务器环境最小化安装后Centos 6.5优化配置备忘

    本文 centos 6.5 优化 的项有18处: 1.centos6.5最小化安装后启动网卡 2.ifconfig查询IP进行SSH链接 3.更新系统源并且升级系统 4.系统时间更新和设定定时任 5. ...

  5. Java基础学习总结(52)——Liunx系统Centos上搭建Java开发环境

    一.安装jdk 1.查看Linux自带的JDK是否已安装 [plain] view plain copy  print? java –version 如果出现openjdk,最好还是先卸载掉openj ...

  6. Centos 7 安装NodeJS开发环境

    [连接 WIFI] 1.查看 wifi 设备标识 $ iw dev | grep Interface 2.启用 wifi $ ip link set wlp2s0 up 3.输入wifi 认证 wpa ...

  7. linux opengl centos,CentOS7配置OpenGL开发环境

    一.安装 # yum list mesa* # yum install -y mesa* # yum install -y freeglut* # yum install -y *glew* 二.验证 ...

  8. spring mvc velocity 配置备忘

    2019独角兽企业重金招聘Python工程师标准>>> Spring里面最重要的概念是IOC和AOP,还有两项很重要的模块是事务和MVC,对于IOC和AOP,我们要深究其源码实现,对 ...

  9. Mac OS X 下mysql配置备忘

    从windows过渡到os x确实需要适应,对于开发人员来讲更是这样. 从官网下载目前最新版本的mysql 5.7.13,下载地址:http://dev.mysql.com/downloads/mys ...

最新文章

  1. JS中对于email格式的判断
  2. 长期股权投资和私募股权投资的区别
  3. wine运行bat文件
  4. 前端学习(1189):事件基本使用
  5. mysql 四叉树的应用_游戏算法(2):查找优化之四叉树的应用
  6. SpringBoot-视图解析与模板引擎
  7. 【四】php字符串操作
  8. python控制ppt定时_python中使用requests实现自动回帖.ppt
  9. (4)理解 neutron ml2---port创建流程代码解析
  10. 服务器虚拟化 远程,服务器虚拟化 远程
  11. 烂泥:SQL Server 2005数据库安装
  12. 【OpenCV】图像变换(五)-仿射变换和透视变换
  13. win2003系统自动登录两法
  14. mysql 拼音模糊查询_mysql中文字段转拼音首字母,以及中文拼音模糊查询
  15. 9种常见的反爬虫策略思路
  16. 【Unreal】关于实时编码(live coding)退出UE编辑器C++ Class消失的问题
  17. kali linux 添加字体,在kali linux之下安装wps之后 报错字体缺失
  18. Boost基础篇——安装
  19. 长时间耳鸣的危害你知道有多严重吗?
  20. 下拉菜单选择城市列表html,js弹出式下拉列表框选择省市地区美化插件 - pickout.js...

热门文章

  1. Android图片压缩--缩略图
  2. Jeesite 安装步骤
  3. Windows系统之建网站
  4. CVPR 2021论文解读 | 长尾分布问题解决新思路
  5. 观察者Observe(刷新数据)
  6. svn revert详解
  7. 如何移除WooCommerce产品分类链接中的product-category
  8. 马斯克最大的挑战是什么?
  9. equals变量是前面还是后面
  10. linux pppd-GPRS和以太网同时在线,解决拨号默认网关