<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Cache on icyveins7's blog</title><link>https://icyveins7.github.io/tags/cache/</link><description>Recent content in Cache on icyveins7's blog</description><generator>Hugo</generator><language>en-us</language><copyright>This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.</copyright><lastBuildDate>Wed, 02 Sep 2026 20:00:00 +0800</lastBuildDate><atom:link href="https://icyveins7.github.io/tags/cache/index.xml" rel="self" type="application/rss+xml"/><item><title>Large pinned host allocations in CUDA</title><link>https://icyveins7.github.io/posts/2026/09/large-pinned-host-allocations-in-cuda/</link><pubDate>Wed, 02 Sep 2026 20:00:00 +0800</pubDate><guid>https://icyveins7.github.io/posts/2026/09/large-pinned-host-allocations-in-cuda/</guid><description>&lt;blockquote&gt;&#10;&lt;p&gt;Sometimes, you just can&amp;rsquo;t fit everything in VRAM.&lt;/p&gt;&#10;&lt;/blockquote&gt;&#10;&lt;p&gt;In most CUDA projects, the advice is usually to transfer all inputs, outputs, and temporary scratch space to the device. Working completely inside VRAM is &lt;em&gt;fast&lt;/em&gt;, and avoids both the complexity and the throughput hit that comes with over-PCIe transfers being scattered throughout your hot path.&lt;/p&gt;&#10;&lt;p&gt;All of this is correct, and I adhere to this myself as much as possible. Sometimes, though, you simply just can&amp;rsquo;t do this, and recently I was left with no choice and had to start migrating stuff back to host memory.&lt;/p&gt;</description></item></channel></rss>