<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.define-technology.com/mediawiki-1.35.0/index.php?action=history&amp;feed=atom&amp;title=OpenMPI_with_ROCm_Support</id>
	<title>OpenMPI with ROCm Support - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.define-technology.com/mediawiki-1.35.0/index.php?action=history&amp;feed=atom&amp;title=OpenMPI_with_ROCm_Support"/>
	<link rel="alternate" type="text/html" href="http://wiki.define-technology.com/mediawiki-1.35.0/index.php?title=OpenMPI_with_ROCm_Support&amp;action=history"/>
	<updated>2026-05-04T17:23:12Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.0</generator>
	<entry>
		<id>http://wiki.define-technology.com/mediawiki-1.35.0/index.php?title=OpenMPI_with_ROCm_Support&amp;diff=32854&amp;oldid=prev</id>
		<title>David: Created page with &quot;&lt;pre&gt; ❯ cat rocm-mpi-install.txt # ubuntu 22.04 LTS  apt update apt install git vim libtool flex apt install build-essential  # make sure user ubuntu is part of render group...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.define-technology.com/mediawiki-1.35.0/index.php?title=OpenMPI_with_ROCm_Support&amp;diff=32854&amp;oldid=prev"/>
		<updated>2024-04-12T13:22:12Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;pre&amp;gt; ❯ cat rocm-mpi-install.txt # ubuntu 22.04 LTS  apt update apt install git vim libtool flex apt install build-essential  # make sure user ubuntu is part of render group...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
❯ cat rocm-mpi-install.txt&lt;br /&gt;
# ubuntu 22.04 LTS&lt;br /&gt;
&lt;br /&gt;
apt update&lt;br /&gt;
apt install git vim libtool flex&lt;br /&gt;
apt install build-essential&lt;br /&gt;
&lt;br /&gt;
# make sure user ubuntu is part of render group&lt;br /&gt;
ubuntu@gpu4:~/scratch/osu/osu-micro-benchmarks-7.2$ id&lt;br /&gt;
uid=1000(ubuntu) gid=1000(ubuntu) groups=1000(ubuntu),4(adm),20(dialout),24(cdrom),25(floppy),27(sudo),29(audio),30(dip),44(video),46(plugdev),110(render),119(netdev),120(lxd)&lt;br /&gt;
&lt;br /&gt;
mkdir ~/scratch&lt;br /&gt;
cd ~/scratch&lt;br /&gt;
&lt;br /&gt;
# make ucx&lt;br /&gt;
git clone https://github.com/openucx/ucx.git -b v1.15.x&lt;br /&gt;
cd ucx&lt;br /&gt;
./autogen.sh&lt;br /&gt;
mkdir build&lt;br /&gt;
cd build&lt;br /&gt;
../configure --prefix=/opt/apps/ucx/1.15 --with-rocm=/opt/rocm&lt;br /&gt;
make -j 64&lt;br /&gt;
sudo make -j 64 install&lt;br /&gt;
&lt;br /&gt;
# make openmpi&lt;br /&gt;
mkdir ~/scratch/ompi&lt;br /&gt;
cd ~/scratch/ompi&lt;br /&gt;
git clone --recursive https://github.com/open-mpi/ompi.git -b v5.0.x&lt;br /&gt;
cd ompi&lt;br /&gt;
./autogen.pl&lt;br /&gt;
mkdir build&lt;br /&gt;
cd build&lt;br /&gt;
../configure --prefix=/opt/apps/ompi/5.0.x --with-ucx=/opt/apps/ucx/1.15 --with-rocm=/opt/rocm&lt;br /&gt;
make -j 64&lt;br /&gt;
make -j 64 install&lt;br /&gt;
&lt;br /&gt;
# rocm OSU benchmarks&lt;br /&gt;
mkdir ~/scratch/osu&lt;br /&gt;
cd ~/scratch/osu&lt;br /&gt;
wget http://mvapich.cse.ohio-state.edu/download/mvapich/osu-micro-benchmarks-7.2.tar.gz&lt;br /&gt;
tar zxvf osu-micro-benchmarks-7.2.tar.gz&lt;br /&gt;
cd osu-micro-benchmarks-7.2/&lt;br /&gt;
./configure --enable-rocm --with-rocm=/opt/rocm CC=/opt/apps/ompi/5.0.x/bin/mpicc CXX=/opt/apps/ompi/5.0.x/bin/mpicxx LDFLAGS=&amp;quot;-L/opt/apps/ompi/5.0.x/lib -lmpi -L/opt/rocm/lib  -D__HIP_PLATFORM_HCC__ -D__HIP_PLATFORM_AMD__ -I/opt/rocm/include -I/opt/rocm/lib/llvm/lib/clang/17.0.0 -lamdhip64&amp;quot; CXXFLAGS=&amp;quot;-D__HIP_PLATFORM_AMD__ -std=c++11&amp;quot; CFLAGS=&amp;quot;-D__HIP_PLATFORM_AMD__&amp;quot;&lt;br /&gt;
make -j 64&lt;br /&gt;
&lt;br /&gt;
# to run the tests&lt;br /&gt;
ubuntu@gpu4:~/scratch/osu/osu-micro-benchmarks-7.2$ cat run_script.sh&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
for i in {0..7}&lt;br /&gt;
do&lt;br /&gt;
	for j in {0..7}&lt;br /&gt;
	do&lt;br /&gt;
		export HIP_VISIBLE_DEVICES=${i},${j}&lt;br /&gt;
		echo $HIP_VISIBLE_DEVICES&lt;br /&gt;
	        mpirun -np 2 -x UCX_TLS=sm,self,rocm --mca pml ucx ./c/mpi/pt2pt/standard/osu_bw D D | tail -n 1&lt;br /&gt;
	done&lt;br /&gt;
done&lt;br /&gt;
this seems to speed up BW when gpu cards are on the same die.&lt;br /&gt;
export HSA_ENABLE_SDMA=0&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>David</name></author>
	</entry>
</feed>