Skip to content

Install 5.0.6 failed with AMD AOCC 5.0 #13145

@liang-cj

Description

@liang-cj

Hi

when I install openMPI from source code with AMD AOCC5.0 compiler, I hit the error as below.

make[2]: Entering directory '/mnt/mydata/openmpi-5.0.6/3rd-party/libevent-2.1.12-stable-ompi'
make install-am
make[3]: Entering directory '/mnt/mydata/openmpi-5.0.6/3rd-party/libevent-2.1.12-stable-ompi'
CCLD sample/dns-example
clang: error: no such file or directory: './.libs/libevent.so'
make[3]: *** [Makefile:1542: sample/dns-example] Error 1

My install script is as below capture:

#!/bin/bash

source /opt/amd/setenv_AOCC.sh

export FC=flang
export CC=clang
export CXX=clang++

export CFLAG="-O3 -ffast-math -march=znver4"
export CXXFLAGS="-O3 -ffast-math -march=znver4 -fopenmp"
export FCFLAGS="-O3 -ffast-math -march=znver4 -fopenmp"

export OPENMPIROOT="/opt/amd/openmp5"

wget https://download.open-mpi.org/release/open-mpi/v5.0/openmpi-5.0.6.tar.gz
tar -xvf openmpi-5.0.6.tar.gz
cd openmpi-5.0.6

./configure --prefix=$OPENMPIROOT --with-libevent=internal CC="${CC}" CXX="$(CXX)" FC="$(FC)" OMPI_CC=clang OMPI_CXX=clang++ OMPI_FC=flang --enable-shared=yes --enable-static=yes --enable-mpi1-compatibility

make -j
make install

Any help is appreciated. Thanks!

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions