Skip to main content
Redhat Developers  Logo
  • AI

    Get started with AI

    • Red Hat AI
      Accelerate the development and deployment of enterprise AI solutions.
    • AI learning hub
      Explore learning materials and tools, organized by task.
    • AI interactive demos
      Click through scenarios with Red Hat AI, including training LLMs and more.
    • AI/ML learning paths
      Expand your OpenShift AI knowledge using these learning resources.
    • AI quickstarts
      Focused AI use cases designed for fast deployment on Red Hat AI platforms.
    • No-cost AI training
      Foundational Red Hat AI training.

    Featured resources

    • OpenShift AI learning
    • Open source AI for developers
    • AI product application development
    • Open source-powered AI/ML for hybrid cloud
    • AI and Node.js cheat sheet

    Red Hat AI Factory with NVIDIA

    • Red Hat AI Factory with NVIDIA is a co-engineered, enterprise-grade AI solution for building, deploying, and managing AI at scale across hybrid cloud environments.
    • Explore the solution
  • Learn

    Self-guided

    • Documentation
      Find answers, get step-by-step guidance, and learn how to use Red Hat products.
    • Learning paths
      Explore curated walkthroughs for common development tasks.
    • Guided learning
      Receive custom learning paths powered by our AI assistant.
    • See all learning

    Hands-on

    • Developer Sandbox
      Spin up Red Hat's products and technologies without setup or configuration.
    • Interactive labs
      Learn by doing in these hands-on, browser-based experiences.
    • Interactive demos
      Click through product features in these guided tours.

    Browse by topic

    • AI/ML
    • Automation
    • Java
    • Kubernetes
    • Linux
    • See all topics

    Training & certifications

    • Courses and exams
    • Certifications
    • Skills assessments
    • Red Hat Academy
    • Learning subscription
    • Explore training
  • Build

    Get started

    • Red Hat build of Podman Desktop
      A downloadable, local development hub to experiment with our products and builds.
    • Developer Sandbox
      Spin up Red Hat's products and technologies without setup or configuration.

    Download products

    • Access product downloads to start building and testing right away.
    • Red Hat Enterprise Linux
    • Red Hat AI
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform
    • See all products

    Featured

    • Red Hat build of OpenJDK
    • Red Hat JBoss Enterprise Application Platform
    • Red Hat OpenShift Dev Spaces
    • Red Hat Developer Toolset

    References

    • E-books
    • Documentation
    • Cheat sheets
    • Architecture center
  • Community

    Get involved

    • Events
    • Live AI events
    • Red Hat Summit
    • Red Hat Accelerators
    • Community discussions

    Follow along

    • Articles & blogs
    • Developer newsletter
    • Videos
    • Github

    Get help

    • Customer service
    • Customer support
    • Regional contacts
    • Find a partner

    Join the Red Hat Developer program

    • Download Red Hat products and project builds, access support documentation, learning content, and more.
    • Explore the benefits

Running HPC workloads across multiple architectures with Red Hat Enterprise Linux

June 13, 2017
Adrian Reber
Related topics:
Developer toolsLinux
Related products:
Developer ToolsetRed Hat Enterprise Linux

    In this article, I want to provide some background details about our recently developed demonstration video - “Running Game of Life across multiple architectures with Red Hat Enterprise Linux“.

    This video shows the Game of Life running in a heterogeneous environment using three 64-bit hardware architectures: aarch64 (ARM v8-A), ppc64le (IBM Power little endian) and x86_64 (Intel Xeon). If you are not familiar with the rules of this cellular automaton, they are worth checking out via the reference above.

    In this multi-architecture demonstration, all systems were located in different test labs, were running Red Hat Enterprise Linux and used Open MPI over Gigabit Ethernet to communicate among themselves. The same program source code was compiled for each of the three architectures and the respective binaries were run on remote systems.

    Since this demo was built as a proof-of-concept, the inter-system communications to remote system labs via Open MPI were expected to be rather slow. In addition, variable latency visible in the video was introduced by the remote GUI display.  

    These Games of life calculations used a total of 12 MPI processes with 4 processes running on each physical system. The Life matrix size was determined by the size of the GUI display.  For each new generation, the master MPI process sends the matrix dimensions to the slave MPI processes followed by several rows of the current generation matrix. This information is sufficient for a particular slave process to compute and send back the new generations of the rows assigned to it.

    Interestingly, Open MPI tools and libraries used in this demonstration were based on OpenHPC repository (using the 1.3.1 branch). Red Hat recently contributed changes to the OpenHPC build procedures to simplify the process of specifying alternate or newer compilers for the build process. The OpenHPC packages were built for all involved architectures (aarch64, ppc64le and x86_64). This is a first-ever proof-of-concept demonstration of OpenHPC-based software stack running on top of Red Hat Enterprise Linux.

    In addition, Red Hat enables developers to access the latest, stable open source C and C++ compilers, complementary development, and performance profiling tools via Red Hat Developer Toolset. It is now available across multiple architectures with the following Red Hat Enterprise Linux subscriptions:

    • Red Hat Enterprise Linux on x86 systems (Intel and AMD)
    • Red Hat Enterprise Linux for IBM Power
    • Red Hat Enterprise Linux for IBM z Systems
    • Red Hat Enterprise Linux Server for ARM Developer Preview

    Finally, I’ve used Ansible for easier and faster installation across three systems. Thanks to Ansible’s system dependent variables, the same playbook was used for all systems.


    The first step is to list all involved systems in the host's file:

    [game]

    aarch64.system.name

    ppc64le.system.name

    x86_64.system.name

    This is the group of hosts used in the following Ansible playbook. In the first part of the playbook, the necessary repositories are defined and the needed packages are installed:

    - name: game

     hosts: game

     user: root

     tasks:

     - name: copy OpenHPC repository file

       copy:

     src: files/ohpc/ohpc-{{ ansible_machine }}.repo

     dest: /etc/yum.repos.d/ohpc-{{ ansible_machine }}.repo

     - name: install OpenHPC packages

       action: package name={{ item }} state=latest

      with_items:

        - lmod-ohpc

        - openmpi-gnu-ohpc

    After Ansible installed the necessary packages, the next step is to make sure that the compiler and MPI are loaded:

    - name: automatically load openHPC compiler and Open MPI

     copy:

       dest: /etc/profile.d/ohpc.sh

       content: "module load gnu openmpi\n"

    The next step is to create a hostfile for Open MPI. It should contain names of systems involved in the calculation and how many processes should be spawned on each of them:

    - name: create Open MPI hostfile

     copy:

       dest: /home/test/hostfile

       content: "{% for host in groups['game']%}

       {{ host }} slots=4\n{% endfor %}"

     become: yes

     become_user: test

    Initially, I wanted to use ansible_processor_vcpus but there seems to be a bug somewhere in Ansible, which makes Ansible report the wrong number of CPUs on aarch64. Because of that,  I am hardcoding the number of CPUs available to Open MPI on aarch64 to be 4.

    The last step of my ansible playbook is the download and compilation of the actual Game of Life implementation using mpicc. Note there are no source changes necessary to compile on the three different host architectures. Although not required, each of the binaries used in this demonstration was compiled in exactly the same way, including the GUI code that actually runs only in the master MPI process. That was done to demonstrate that the same source code compiles and runs in the same way with Red Hat Enterprise Linux on each of the three architectures:

    - name: download Game of Life

     get_url:

       url: http://some.host/life/{{item}}

       dest: /home/test/MPI-Game-of-Life

     become: yes

     become_user: test

     with_items:

       - mpi_life.c

     

    - name: build Game of Life

     shell: “cd /home/test/MPI-Game-of-Life;

     mpicc -Wall -g  -DMASTER_GUI  mpi_life.c

     -o mpi_life  `pkg-config --cflags gtk+-2.0`

     `pkg-config --libs gtk+-2.0`”

    At this point, the demo is ready to run and the Game of Life can be started just as it can be seen in the video:

    mpirun --hostfile hostfile MPI-Game-of-Life/mpi_life

    In this demonstration, I’ve run “top” in the terminal window to show four MPI processes running on each of the three systems. You can observe the actual workload running across the testbed, as many new cell generations are being calculated and displayed during this experiment.

    I hope this video piqued your interest and demonstrated how you can run HPC-focused workloads and packages, including OpenHPC, across multiple-architectures with Red Hat Enterprise Linux.

    Recent Posts

    • MCP servers vs. skills: Choosing the right context for your AI

    • How to route external and local LLMs with Models-as-a-Service

    • Protect data offloaded to GPU-accelerated environments with OpenShift sandboxed containers

    • Case study: Measuring energy efficiency on the x64 platform

    • How to prevent AI inference stack silent failures

    Red Hat Developers logo LinkedIn YouTube Twitter Facebook

    Platforms

    • Red Hat AI
    • Red Hat Enterprise Linux
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform
    • See all products

    Build

    • Developer Sandbox
    • Developer tools
    • Interactive tutorials
    • API catalog

    Quicklinks

    • Learning resources
    • E-books
    • Cheat sheets
    • Blog
    • Events
    • Newsletter

    Communicate

    • About us
    • Contact sales
    • Find a partner
    • Report a website issue
    • Site status dashboard
    • Report a security problem

    RED HAT DEVELOPER

    Build here. Go anywhere.

    We serve the builders. The problem solvers who create careers with code.

    Join us if you’re a developer, software engineer, web designer, front-end designer, UX designer, computer scientist, architect, tester, product manager, project manager or team lead.

    Sign me up

    Red Hat legal and privacy links

    • About Red Hat
    • Jobs
    • Events
    • Locations
    • Contact Red Hat
    • Red Hat Blog
    • Inclusion at Red Hat
    • Cool Stuff Store
    • Red Hat Summit
    © 2026 Red Hat

    Red Hat legal and privacy links

    • Privacy statement
    • Terms of use
    • All policies and guidelines
    • Digital accessibility

    Chat Support

    Please log in with your Red Hat account to access chat support.