<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Openshift on Aleskandro</title><link>https://aleskandro.com/tags/openshift/</link><description>Recent content in Openshift on Aleskandro</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><copyright>&lt;p xmlns:cc="http://creativecommons.org/ns#" style="margin:0;padding:0">
The content in this blog is licensed under
&lt;a href="https://creativecommons.org/licenses/by-nc-sa/4.0/?ref=chooser-v1" target="_blank" rel="license noopener noreferrer" style="display:inline-block;">
Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International&lt;/a>
&lt;/p>
&lt;p style="margin:0;padding:0;margin-top:5px">
&lt;img style="border:none;display:inline-block;padding:0;margin:0" height=40 src="https://aleskandro.com/img/by-nc-sa.png" alt="">
&lt;/p></copyright><lastBuildDate>Tue, 02 Jun 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://aleskandro.com/tags/openshift/index.xml" rel="self" type="application/rss+xml"/><item><title>From Workstation to H200: Debugging a First CUDA Kernel on an OpenShift GPU Cluster</title><link>https://aleskandro.com/posts/first-cuda-kernel-cheat-sheet/</link><pubDate>Tue, 02 Jun 2026 00:00:00 +0000</pubDate><guid>https://aleskandro.com/posts/first-cuda-kernel-cheat-sheet/</guid><description>&lt;p>I&amp;rsquo;m diving into the basics of CUDA kernel programming, starting with the canonical first exercise: a vector addition kernel.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-c" data-lang="c">&lt;span style="display:flex;">&lt;span>__global__ &lt;span style="color:#66d9ef">void&lt;/span> &lt;span style="color:#a6e22e">vector_add&lt;/span>(&lt;span style="color:#66d9ef">const&lt;/span> &lt;span style="color:#66d9ef">float&lt;/span>&lt;span style="color:#f92672">*&lt;/span> A, &lt;span style="color:#66d9ef">const&lt;/span> &lt;span style="color:#66d9ef">float&lt;/span>&lt;span style="color:#f92672">*&lt;/span> B, &lt;span style="color:#66d9ef">float&lt;/span>&lt;span style="color:#f92672">*&lt;/span> C, &lt;span style="color:#66d9ef">int&lt;/span> N) {
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#66d9ef">int&lt;/span> i &lt;span style="color:#f92672">=&lt;/span> blockIdx.x &lt;span style="color:#f92672">*&lt;/span> blockDim.x &lt;span style="color:#f92672">+&lt;/span> threadIdx.x;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#66d9ef">if&lt;/span> (i &lt;span style="color:#f92672">&amp;lt;&lt;/span> N) {
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> C[i] &lt;span style="color:#f92672">=&lt;/span> A[i] &lt;span style="color:#f92672">+&lt;/span> B[i];
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> }
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>}
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>The development environment is a Rocky Linux 9 toolbox with the CUDA 13.5 toolkit. The execution target is an OpenShift cluster whose GPU nodes carry eight NVIDIA H200 GPUs each, managed by the NVIDIA GPU Operator. The workstation itself has no NVIDIA GPU, so the cluster is the only place the kernel can actually run — which makes the deployment path part of the exercise.&lt;/p></description></item></channel></rss>