<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>RDMA on Dr. Scott Spencer</title>
    <link>https://ssp3nc3r.github.io/tags/rdma/</link>
    <description>Recent content in RDMA on Dr. Scott Spencer</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Wed, 02 Dec 2026 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://ssp3nc3r.github.io/tags/rdma/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>One Stan chain across RDMA-connected Macs</title>
      <link>https://ssp3nc3r.github.io/post/one-stan-chain-across-rdma-connected-macs/</link>
      <pubDate>Wed, 02 Dec 2026 00:00:00 +0000</pubDate>
      <guid>https://ssp3nc3r.github.io/post/one-stan-chain-across-rdma-connected-macs/</guid>
      <description>&lt;p&gt;&lt;em&gt;An earlier &lt;a href=&#34;https://ssp3nc3r.github.io/publications/papers/stan-custom-cpp-tutorial.html&#34;&gt;tutorial&lt;/a&gt; showed how to hand-code a gradient in C++, and then how to spread one chain&amp;rsquo;s gradient over the cores of one machine. This one carries the same idea across machines: Macs joined by Thunderbolt 5 cables and RDMA, where a chain&amp;rsquo;s parameters and gradients cross from one Mac&amp;rsquo;s memory to another&amp;rsquo;s in a fraction of a millisecond.&lt;/em&gt;&lt;/p&gt;&#xA;&lt;h2 id=&#34;from-the-cores-of-one-mac-to-several-macs&#34;&gt;From the cores of one Mac to several Macs&lt;/h2&gt;&#xA;&lt;p&gt;The earlier tutorial has two sections on threading a single chain: &lt;a href=&#34;https://ssp3nc3r.github.io/publications/papers/stan-custom-cpp-tutorial.html#adding-parallelism-with-reduce_sum&#34;&gt;one with &lt;code&gt;reduce_sum&lt;/code&gt;&lt;/a&gt; and &lt;a href=&#34;https://ssp3nc3r.github.io/publications/papers/stan-custom-cpp-tutorial.html#sec-raw-tbb&#34;&gt;one with raw TBB&lt;/a&gt;. Both rest on one observation. A chain&amp;rsquo;s steps are sequential, but the work inside one step is a sum: the log likelihood adds a term for every observation, and so does its gradient. So we cut the observations into slices, each core evaluates a slice, and we add the partial sums. The chain is still one chain. Each of its gradients arrives sooner.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
