GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — HPCTrainingExamples/login_info/AAC/README.md at main · amd/HPCTrainingExamples

Expand file tree

/

README.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
executable file
·
238 lines (191 loc) · 10.8 KB
/

README.md

Copy path

File metadata and controls

executable file
·
238 lines (191 loc) · 10.8 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

\newpage

AMD Accelerator Cloud (AAC)

File: login_info/AAC/README.md at https://github.com/amd/HPCTrainingExamples

We have some small cloud based systems available for training activities. Attendees can login using the instructions below. This set of instructions assumes that users have already received their <username> and <port_number> for the container, and that they have either provided an ssh key to the training team, or they have received a password from the training team.

Login Instructions

The instructions below rely on ssh to access the AAC. If you have not sent your public key in for an account and do not have an ssh public key, start with the instructions on how to generate an ssh key. If you have sent an ssh key and received your account information, skip to the section on how to log into the system.

SSH-Key Generation

Generate an ssh key on your local system, which will be stored in .ssh:

cd $HOME
ssh-keygen -t ed25519

To examine the content of your public key do:

cat $HOME/.ssh/id_ed25519.pub

NOTE: at first login, you will be presented with the AAC user agreement form. This covers the terms of use of the compute hardware as well as how we will handle your data. Scroll down with the down arrow and type yes when prompted. Note that if you will scroll down too much, then no will be received as answer and you will be logged out.

Login with SSH-Key

IMPORTANT: if you are supposed to login with an ssh key and you are prompted a password, do not type any password! Instead, type Ctrl+C and contact us to get some help.

To login to an AAC MI300A system using the ssh key use the <username> that the training team has provided you, for instance:

ssh <username>@aac6.amd.com -i <path/to/ssh/key> (1)

Login with password

For a password login, the command is the same as in (1), except that it is not necessary to specify a path to the ssh key. Just type the password that has been given to you when prompted:

ssh <username>@aac6.amd.com 

IMPORTANT: It is fundamental to not type the wrong password more than two times otherwise your I.P. address will be blacklisted and you will not be allowed access to AAC until we modify our firewall to get you back in. This is especially important if you are at an event where all the attendees are connecting to the same wireless network.

If you are using a password login, you can upload an ssh key with the following command to avoid using a password

ssh-copy-id -i <path/to/ssh/key.pub> -o UpdateHostKeys=yes <username>@aac6.amd.com

In the commands above -i points to the path of your ssh key. The -i option is not needed if your default key is used.

To simplify the login even further, you can add the following to your .ssh/config file:

# AMD AAC cluster
Host aac
   User <username>
   Hostname aac6.amd.com // this may be different depending on the container
   IdentityFile <path/to/ssh/key> // this points to the private key file
   ServerAliveInterval 600
   ServerAliveCountMax 30

The ServerAlive* lines in the config file may be added to avoid timeouts when idle. You can then login using:

ssh aac -p <port_number>

It may also happen that a message like the following will show after logging into AAC:

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.

In such a case, remove in your local system the offending keys located in .ssh/known_hosts, as indicated by the warning message.

Login Troubleshooting

Here are some troubleshooting tips if you cannot login to AAC following the instructions above:

  1. Check the spelling of the command ssh, in particular <username> and password.
  2. Turn off VPN if on.
  3. Try logging in from a different machine if available (and migrate the ssh key to the new machine or generate a new one and send it to us).
  4. Try a jump host: this is a local server that you ssh to and then do a second ssh command from there.

In case none of these options work, send us the output of the ssh command followed by -vv and also the output of traceroute aac6.amd.com. Additionally, let us know if the command ping aac6.amd.com works on your end.

Directories and Files

$HOME=/home/aac/shared/teams/hackathon-testing/<group>/<username>`

You can copy files in or out of AAC with the scp or the rsync command.

Copy into AAC from your local system, for instance:

scp -i <path/to/ssh/key> <file> <username>@aac6.amd.com:~/<path/to/file>

Copy from AAC to your local system:

scp -i <path/to/ssh/key> <username>@aac6.amd.com:~/<path/to/file> .

To copy files in or out of the container, you can also use rsync as shown below:

rsync -avz -e "ssh -i <path/to/ssh/key>" <file> <username>@aac6.amd.com:~/<path/to/file>

Container Environment

Please consult the container's README to learn about the latest specs of the training container.

The software on the node is based on the Ubuntu 22.04 Operating System with one of the latest versions of the ROCm software stack. It contains multiple versions of AMD, GCC, and LLVM compilers, hip libraries, GPU-Aware MPI, AMD profiling tools and HPC community tools. The container also has modules set up with the lua modules package and a slurm package and configuration. It includes the following additional packages:

  • emacs
  • vim
  • autotools
  • cmake
  • tmux
  • boost
  • eigen
  • fftw
  • gmp
  • gsl
  • hdf5-openmpi
  • lapack
  • magma
  • matplotlib
  • parmetis
  • mpfr
  • mpi4py
  • openblas
  • openssl
  • swig
  • numpy
  • scipy
  • h5sparse

Explore Modules

To see what modules are available do:

module avail 

The output list of module avail should show:

------------------------- /nfsapps/ubuntu-24.04/modules/base --------------------------
   emacs/30.1                 rocm/6.3.3    rocm/7.1.0         rocm/7.14.0
   google-chrome/stable       rocm/6.3.4    rocm/7.1.1         rocm/10.0.0
   qcachegrind/23.08.5        rocm/6.4.0    rocm/7.2.0         roofline-extractor/dev
   rocbudai/dev               rocm/6.4.1    rocm/7.2.1         tracelens/dev
   rocm/afar-23.1.0-7.12.0    rocm/6.4.2    rocm/7.2.2         turbovnc/3.0.3
   rocm/afar-23.2.1-7.13.0    rocm/6.4.3    rocm/7.2.3         uprof/5.3-518
   rocm/6.3.0                 rocm/7.0.0    rocm/7.2.4  (D)
   rocm/6.3.1                 rocm/7.0.1    rocm/7.12.0
   rocm/6.3.2                 rocm/7.0.2    rocm/7.13.0

Once you load a ROCm module module load rocm, you will see additional modules built with that ROCm version

---------------------------- /nfsapps/ubuntu-24.04/modules/rocmplus-7.2.4 ----------------------------
   cupy/13.5.1                                          pytorch/2.7.1_tunableop_enabled
   elpa/master-548c64b                                  pytorch/2.7.1
   fftw/3.3.10                                          pytorch/2.8.0_tunableop_enabled
   ftorch/2.12.0                                        pytorch/2.8.0
   ftorch_amdflang/2.12.0                               pytorch/2.9.1_tunableop_enabled
   hdf5/2.1.1                                           pytorch/2.9.1
   heffte/2.4.1                                         pytorch/2.10.0_tunableop_enabled
   hip-python/7.2.4                                     pytorch/2.10.0
   hipblaslt/patched                             (L)    pytorch/2.11.0_tunableop_enabled
   hipifly/dev                                          pytorch/2.11.0
   hpctoolkit/2025.1.2                                  pytorch/2.12.0_tunableop_enabled
   hypre/3.1.0                                          pytorch/2.12.0                   (D)
   intellikit/main                                      rccl-tests/7.2.4
   jax/0.8.0                                            roc-optiq/0.5.0
   kokkos/4.7.04                                        roc-optiq/1.0.0                  (D)
   likwid/5.5.1                                         rocshmem/3.2.0-ro_ipc
   likwid/5.5.2                                  (D)    scorep/9.4
   magma/2.10.0                                         scorep/11.0-dev                  (D)
   mdb/1.0.6                                            tau/dev
   mpi4py/4.1.0                                         tensorflow/2.20.0
   mpitrace/7.2.4                                       umpire/2025.12.0
   netcdf-c/4.10.0                                      vllm/0.10.1-pt2.7.1
   netcdf-fortran/4.6.2                                 vllm/0.10.1-pt2.8.0
   openblas/0.3.33                                      vllm/0.11.0-pt2.9.1
   openmpi/5.0.10-ucc1.6.0-ucx1.19.1-xpmem-2.7.4        vllm/0.19.1-pt2.10.0
   petsc/3.24.1                                         vllm/0.27.1-pt2.11.0
   pnetcdf/1.14.1                                       vllm/0.27.1-pt2.12.0             (D)

------------------------------ /nfsapps/ubuntu-24.04/modules/rocm-7.2.4 ------------------------------
   amdclang/22.0.0-7.2.4    hipfort/7.2.4    opencl/7.2.4

Compiler modules set the C, CXX, FC flags. Only one compiler module can be loaded at a time. hipcc is in the path when the rocm module is loaded. Note that there are several modules that set the compiler flags and that they set the full path to the compilers to avoid path problems.

Slurm Information

The AAC6 node is set up with Slurm. Slurm configuration is for a single queue that is shared with the rest of the node. Run the following command to get info on Slurm:

sinfo 
PARTITION          AVAIL  TIMELIMIT  NODES  STATE NODELIST
PPAC_MI300A_CPX*      up    8:00:00      1   idle ppac-pl1-s25-40
PPAC_MI300A_SPX       up    8:00:00      4  alloc ppac-pl1-s24-[16,26,30,35]
SH5_MI300A_CPX        up    8:00:00      4   idle sh5-pl1-s12-[09,12,15,36]
SH5_MI300A_SPX        up    8:00:00      1   idle sh5-pl1-s12-33
sh5_cpx_admin_long    up 2-00:00:00      4   idle sh5-pl1-s12-[09,12,15,36]

The Slurm salloc command may be used to acquire a long term session that exclusively grants access to one or more GPUs. Alternatively, the srun or sbatch commands may be used to acquire a session with one or more GPUs and only exclusively use the session for the life of the run of an application. squeue will show information on who is currently running jobs.

Training Examples Repo

You can get the examples from our repository. This repository contains all the code that we normally use during our training events:

cd $HOME
git clone https://github.com/amd/HPCTrainingExamples.git
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.