CentOS 8.5高性能计算开发环境配置备忘
创始人
2024-05-30 04:48:12
0

CentOS 8.5环境配置


工具命令

  • 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配置加载

上一篇:UML全解

下一篇:深度剖析C语言预处理

相关内容

热门资讯

【NI Multisim 14...   目录 序言 一、工具栏 🍊1.“标准”工具栏 🍊 2.视图工具...
银河麒麟V10SP1高级服务器... 银河麒麟高级服务器操作系统简介: 银河麒麟高级服务器操作系统V10是针对企业级关键业务...
不能访问光猫的的管理页面 光猫是现代家庭宽带网络的重要组成部分,它可以提供高速稳定的网络连接。但是,有时候我们会遇到不能访问光...
AWSECS:访问外部网络时出... 如果您在AWS ECS中部署了应用程序,并且该应用程序需要访问外部网络,但是无法正常访问,可能是因为...
Android|无法访问或保存... 这个问题可能是由于权限设置不正确导致的。您需要在应用程序清单文件中添加以下代码来请求适当的权限:此外...
北信源内网安全管理卸载 北信源内网安全管理是一款网络安全管理软件,主要用于保护内网安全。在日常使用过程中,卸载该软件是一种常...
AWSElasticBeans... 在Dockerfile中手动配置nginx反向代理。例如,在Dockerfile中添加以下代码:FR...
AsusVivobook无法开... 首先,我们可以尝试重置BIOS(Basic Input/Output System)来解决这个问题。...
ASM贪吃蛇游戏-解决错误的问... 要解决ASM贪吃蛇游戏中的错误问题,你可以按照以下步骤进行:首先,确定错误的具体表现和问题所在。在贪...
月入8000+的steam搬砖... 大家好,我是阿阳 今天要给大家介绍的是 steam 游戏搬砖项目,目前...