安装HPCKit(交互式)

操作步骤

  1. 使用PuTTY工具,登录HPCKit的安装节点。
  2. 执行以下命令,进入HPCKit软件包所在目录。

    cd HPCKit软件包所在目录

    批量安装HPCKit时,安装目录请参见《Kunpeng HPC Solution 24.0.RC2 LLD模板》中“项目基本信息 > 共享存储目录规划 > HPCKit安装目录”。

  3. 执行以下命令,解压HPCKit软件包。

    tar xvf HPCKit_24.0.RC2_Linux-aarch64.tar.gz

  4. 安装HPCKit。

    1. 执行以下命令,进入安装流程。
      sh HPCKit_24.0.RC2_Linux-aarch64/install.sh
    2. 在回显信息后,输入HPCKit的安装目录。
      1
      Enter the installation path (default: /opt):HPCKit的安装目录
      

      回显信息中包含如下提示信息,表示已完成安装目录配置,请执行4.c;否则,请先根据报错信息完成异常处理,然后完成安装目录配置,再执行4.c

      You have selected: /opt
      • 如果用户对1中输入的HPCKit的安装目录有写权限,则HPCKit可以安装在该目录下。
      • 如果用户对1中输入的HPCKit的安装目录无写权限,界面出现如下回显,并再次提示用户输入安装目录,如果用户不输入安装目录并直接按回车,则会默认安装在~目录下,~目录是用户的$HOME目录。
        Error: You do not have permission to write to HPCKit的安装目录. Please choose another path.
      • 如果配置的安装目录空间小于10GB,则会回显以下提示信息,建议重新规划安装目录,或清理该目录空间。
        The space of the HPCKit installation directory is insufficient.
        About 10 GB space is required for installing HPCKit.
        Run the 'df -h /opt' command to check the space of the installation directory.
    3. 在回显信息后,选择需要安装的编译器。

      出现如下回显信息后,

      • 如果全部安装(系统默认),直接按“Enter”;
      • 如果只安装Bisheng-Compiler,先输入“2”,然后按两次“Enter”;
      • 如果只安装GCC-Compiler,先输入“1”,然后按两次“Enter”。

        按“1”或“2”表示切换“1”或“2”在回显中对应的编译器“是否安装”的选项,例如1代表毕昇编译器(默认安装),按下1表示切换为不安装毕昇编译器。

      1
      2
      3
      4
      5
      6
      Start installing Compiler...
      Please Enter (1-2) to switch compiler selection, only checked compiler(s) will be installed.
      Enter 'q' to quit, 'y' or enter to confirm compiler installation.
      Number     Option                    Choice     Descriptions
      1          Bisheng-Compiler          Y          Bisheng Compiler
      2          GCC-Compiler              Y          GCC Compiler   
      
      回显如下信息(以全部安装为例),表示安装成功,请继续执行4;否则,请先根据报错信息完成异常处理,然后完成编译器安装,再执行4
      Confirm Installation.
      Start Installing Bisheng Compiler
      Bisheng Compiler Installation Finished.
      Start Installing Gcc For openEuler
      Gcc For openEuler Installation Finished.
    4. 选择安装组件HMPI、KPCCL、KML。
      • 如果同时使用毕昇和GCC两种编译器,则根据界面信息先完成毕昇编译器编译的组件安装,然后完成GCC编译器编译的组件安装。
      • 如果仅使用毕昇或GCC编译器中的一种,则根据界面信息完成对应的组件安装即可。
      • 使用毕昇编译器

        出现如下回显信息后,

        • 如果全部安装(系统默认),直接按“Enter”;
        • 如果只安装HMPI,先输入“1”,然后按“Enter”,再输入“2”,然后按两次“Enter”。
        • 如果只安装KPCCL先输入“1”,然后按“Enter”,再输入“3”,然后按两次“Enter。
        • 如果只安装KML先输入“2”,然后按“Enter”,再输入“3”,然后按两次“Enter。
        • 如果需要安装两个组件例如KML和KPCCL,先输入“3”,然后按两次“Enter”。
        • 如果不安装任何组件,先输入“q”,然后按“Enter”。
        1
        2
        3
        4
        5
        6
        7
        Start Installing Bisheng Compiled Component...
        Please Enter (1-3) to switch component selection, only checked component(s) will be installed.
        Enter 'q' to quit, 'y' or enter to confirm component installation.
        Number     Option                    Choice     Descriptions
        1          KML                       Y          Kunpeng Math Library (Bisheng compiled)
        2          KPCCL                     Y          Kunpeng Parallel Computing Core Library (Bisheng compiled)
        3         HMPI                      Y          Hyper Message Passing Interface (Bisheng compiled)
        
        回显如下信息(以全部安装为例),表示安装成功,操作结束;否则,请先根据报错信息完成异常处理,然后完成组件安装。
        Confirm Installation.
        Start Installing bisheng compiled KML
         Kunpeng CPU check successfully.
        KML Installation Finished
        Start Installing bisheng compiled KPCCL
        KPCCL Installation Finished.
        Start Installing bisheng compiled Hyper MPI
        HMPI Installation Finished.
      • 使用GCC编译器

        出现如下回显信息后,

        • 如果全部安装(系统默认),直接按“Enter”;
        • 如果只安装HMPI,先输入“1”,然后按“Enter”,再输入“2”,然后按两次“Enter”。
        • 如果只安装KPCCL先输入“1”,然后按“Enter”,再输入“3”,然后按两次“Enter”。
        • 如果只安装KML先输入“2”,然后按“Enter”,再输入“3”,然后按两次“Enter”。
        • 如果需要安装两个组件例如KML和KPCCL,先输入“3”,然后按两次“Enter”。
        • 如果不安装任何组件,先输入“q”,然后按“Enter”。
        Start installing GCC Compiled Component...
        Please Enter (1-2) to switch component selection, only checked component(s) will be installed.
        Enter 'q' to quit, 'y' or enter to confirm component installation.
        Number     Option                    Choice     Descriptions
        1          KML                       Y          Kunpeng Math Library (GCC compiled)
        2          KPCCL                     Y          Kunpeng Parallel Computing Core Library (GCC compiled)
        3         HMPI                      Y          Hyper Message Passing Interface (GCC compiled)
        回显如下信息,表示安装成功,操作结束;否则,请先根据报错信息完成异常处理,然后完成组件安装。
        Confirm Installation.
        Start Installing gcc compiled KML
         Kunpeng CPU check successfully.
        KML Installation Finished
        Start Installing gcc compiled Hyper MPI
        HMPI Installation Finished.
    5. 安装HIO组件。
      • 场景一:已安装以下HIO桥接目标库libhdf5.so >= 1.12.0、libnetcdf.so >= 4.7.4和libpnetcdf.so >= 1.12.1且配置了环境变量。会出现以下回显信息。
        1
        2
        3
        4
        5
        Start installing HIO Component...
        Please Enter (1-1) to switch component selection, only checked component(s) will be installed.
        Enter 'q' to quit, 'y' or enter to confirm component installation.
        Number     Option                    Choice     Descriptions
        1          HIO                       Y          Kunpeng Hyper IO Middleware
        
        • 如果安装HIO组件(系统默认),直接按“Enter”。
          回显如下信息,表示安装成功,操作结束;否则,请先根据报错信息完成异常处理,然后完成组件安装。
          1
          2
          3
          Confirm Installation.
          Start Installing HIO
          HIO Installation Finished
          
        • 如果不安装HIO组件,输入“1”,然后按两次“Enter”。
      • 场景二:未安装以下HIO桥接目标库libhdf5.so >= 1.12.0、libnetcdf.so >= 4.7.4和libpnetcdf.so >= 1.12.1,或者已安装但未配置环境变量。会出现以下回显信息。
        • 选择y,继续安装HIO组件。
        • 选择n,退出安装HIO组件。
        Start Installing HIO
        libhdf5.so >= 1.12.0 required, Please update the library to the required version.
        Continue Installation? [y/n]
        y
        Confirm Installation.
        libnetcdf.so >= 4.7.4 required, Please update the library to the required version.
        Continue Installation? [y/n]
        y
        Confirm Installation.
        libpnetcdf.so >= 1.12.1 required, Please update the library to the required version.
        Continue Installation? [y/n]
        y
        Confirm Installation.
        HIO Installation Finished