<?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=OSU_Benchmarking_with_Python_and_Pytorch</id>
	<title>OSU Benchmarking with Python and Pytorch - 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=OSU_Benchmarking_with_Python_and_Pytorch"/>
	<link rel="alternate" type="text/html" href="http://wiki.define-technology.com/mediawiki-1.35.0/index.php?title=OSU_Benchmarking_with_Python_and_Pytorch&amp;action=history"/>
	<updated>2026-05-04T17:18:30Z</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=OSU_Benchmarking_with_Python_and_Pytorch&amp;diff=32862&amp;oldid=prev</id>
		<title>David: Created page with &quot;Note; this is only for CPU benchmarks but still tests the python libs  &lt;pre&gt;  python3.9 -m venv ~/venvs/pytorch-osu-testing source ~/venvs/pytorch-osu-testing/bin/activate pip...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.define-technology.com/mediawiki-1.35.0/index.php?title=OSU_Benchmarking_with_Python_and_Pytorch&amp;diff=32862&amp;oldid=prev"/>
		<updated>2024-06-24T08:34:28Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Note; this is only for CPU benchmarks but still tests the python libs  &amp;lt;pre&amp;gt;  python3.9 -m venv ~/venvs/pytorch-osu-testing source ~/venvs/pytorch-osu-testing/bin/activate pip...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Note; this is only for CPU benchmarks but still tests the python libs&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
python3.9 -m venv ~/venvs/pytorch-osu-testing&lt;br /&gt;
source ~/venvs/pytorch-osu-testing/bin/activate&lt;br /&gt;
pip install -U pip&lt;br /&gt;
mkdir ~/scratch&lt;br /&gt;
cd scratch&lt;br /&gt;
git clone https://github.com/Algebraic-Programming/pytorch-hccl-tests.git&lt;br /&gt;
cd pytorch-hccl-tests&lt;br /&gt;
pip install -r requirements_dev.txt&lt;br /&gt;
make install&lt;br /&gt;
&lt;br /&gt;
# should this this at the end&lt;br /&gt;
Successfully installed pandas-1.3.5 python-dateutil-2.9.0.post0 pytorch-hccl-tests-0.1.15 pytz-2024.1 six-1.16.0&lt;br /&gt;
&lt;br /&gt;
# installed a pretty old pytorch, updating&lt;br /&gt;
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/rocm6.0&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# on one node (only node_rank differs); &lt;br /&gt;
torchrun --master_addr=172.16.16.42 --master_port=29500 --node_rank 0 --nnodes 2 --nproc_per_node 1 pytorch_hccl_tests/cli.py --benchmark latency --device cpu&lt;br /&gt;
&lt;br /&gt;
# then on node 2; &lt;br /&gt;
torchrun --master_addr=172.16.16.42 --master_port=29500 --node_rank 1 --nnodes 2 --nproc_per_node 1 pytorch_hccl_tests/cli.py --benchmark latency --device cpu&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
(pytorch-osu-testing) [antony@gpu5 pytorch-hccl-tests]$ torchrun --master_addr=172.16.16.42 --master_port=29500 --node_rank 0 --nnodes 2 --nproc_per_node 1 pytorch_hccl_tests/cli.py --benchmark latency --device cpu&lt;br /&gt;
[2024-06-20 16:18:47,241] {cli.py:67} INFO - ******************************&lt;br /&gt;
[2024-06-20 16:18:47,241] {cli.py:68} INFO - Selected benchmark : latency&lt;br /&gt;
[2024-06-20 16:18:47,241] {cli.py:69} INFO - Input device param : cpu&lt;br /&gt;
[2024-06-20 16:18:47,241] {cli.py:70} INFO - Input dtype param  : float&lt;br /&gt;
[2024-06-20 16:18:47,241] {cli.py:71} INFO - Global rank        : 0&lt;br /&gt;
[2024-06-20 16:18:47,241] {cli.py:72} INFO - Local rank         : 0&lt;br /&gt;
[2024-06-20 16:18:47,241] {cli.py:73} INFO - ******************************&lt;br /&gt;
[2024-06-20 16:18:47,241] {commons.py:108} INFO - Init distributed env device: cpu / local_rank 0&lt;br /&gt;
[2024-06-20 16:18:47,289] {commons.py:162} INFO - Python version: 3.9.18&lt;br /&gt;
[2024-06-20 16:18:47,289] {commons.py:163} INFO - PyTorch version: 2.3.1+rocm6.0&lt;br /&gt;
[2024-06-20 16:18:47,290] {commons.py:164} INFO - PyTorch MPI enabled?: False&lt;br /&gt;
[2024-06-20 16:18:47,290] {commons.py:165} INFO - PyTorch CUDA enabled?: True&lt;br /&gt;
[2024-06-20 16:18:47,290] {commons.py:166} INFO - PyTorch NCCL enabled?: True&lt;br /&gt;
[2024-06-20 16:18:47,290] {commons.py:167} INFO - PyTorch Gloo enabled?: True&lt;br /&gt;
[2024-06-20 16:18:47,290] {commons.py:174} WARNING - ********************************************************************************&lt;br /&gt;
[2024-06-20 16:18:47,290] {commons.py:175} WARNING - * PyTorch Ascend (NPU) is NOT installed.&lt;br /&gt;
[2024-06-20 16:18:47,290] {commons.py:176} WARNING - * You must install PyTorch Ascend Adaptor from https://gitee.com/ascend/pytorch. *&lt;br /&gt;
[2024-06-20 16:18:47,290] {commons.py:179} WARNING - ********************************************************************************&lt;br /&gt;
[2024-06-20 16:18:47,290] {commons.py:181} INFO - Using device *cpu* with *gloo* backend&lt;br /&gt;
[2024-06-20 16:18:47,290] {commons.py:182} INFO - World size: 2&lt;br /&gt;
[2024-06-20 16:18:47,290] {osu_util_mpi.py:32} INFO - # PyTorch Benchmark Latency Test&lt;br /&gt;
[2024-06-20 16:18:47,290] {osu_util_mpi.py:33} INFO - # Size (B) Elapsed Time (ms)&lt;br /&gt;
[2024-06-20 16:18:48,455] {osu_latency.py:72} INFO - 0                      52.13&lt;br /&gt;
[2024-06-20 16:18:49,650] {osu_latency.py:72} INFO - 4                      54.28&lt;/div&gt;</summary>
		<author><name>David</name></author>
	</entry>
</feed>