Blog

DLSS in Blender on NVIDIA DGX Spark

Blender with DLSS is now possible on Spark!

tl;dr

DLSS works in Blender using a combination of this ARM64 preview build of Blender 5.3, a few libnvidia-ngx-*.so.* files, and a newer kernel and driver. Requires unsupported changes, but it works.

How it works

DLSS in Blender required a number of components:

Getting Blender

Get the latest preview build from the ARM64 previews:

wget "https://download.blender.org/preview/linux_arm64/blender-5.3.0-linux-arm64-preview-build-1.tar.xz"
tar xvf blender-5.3.0-linux-arm64-preview-build-1.tar.xz
        

Adding in DLSS

At this point, you should be able to run Blender with ./blender-launcher from inside the directory. CUDA and OptiX work (you might need to enable them in Blender's settings), but DLSS won't.

To add in DLSS, download the three .so files from here in the DLSS GitHub repo and copy them into the folder where blender-launcher resides. As of writing, the driver Spark ships with is too old. Check the current driver with nvidia-smi - if it reports 580, it's too old.

Updating the NVIDIA driver

Installing a newer driver is at your own risk and is not supported. It may be nontrivial to repair a failed driver upgrade.

Building a newer kernel (optional)

I opted to build a (newer) kernel from source with Clang in addition to the newer driver. I haven't tried without the upgraded kernel, but I suspect it should work.

Clone both the upstream kernel and the NVIDIA one:


git clone https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git clone -b 24.04_linux-nvidia-7.0-next https://github.com/NVIDIA/NV-Kernels.git
        

Use the NVIDIA Realtek drivers instead of the upstream ones:


rm -rv linux/drivers/net/ethernet/realtek
cp -rv NV-Kernels/drivers/net/ethernet/realtek linux/drivers/net/ethernet/
        

You can either configure it yourself or use my config as a starting point. For mine, go into the kernel source with cd linux and download it from here:


curl -v -o .config 'https://static.blastoffconsulting.dev/d27f4ace-44bd-451e-98cc-ed7b3b5ec80a'
make LLVM=1 KCFLAGS="-mtune=native" -j18 olddefconfig
        

If you opt to configure it yourself, the primary changes I made were:

Either way, build the kernel and its modules, and install them:


make LLVM=1 KCFLAGS="-mtune=native" -j18
make LLVM=1 KCFLAGS="-mtune=native" -j18 modules
sudo make LLVM=1 KCFLAGS="-mtune=native" -j18 modules_install
sudo make LLVM=1 KCFLAGS="-mtune=native" -j18 install
sudo update-grub

Download the newer Linux aarch64 driver, 620 at the time of writing. It will download a .run file. Make it executable with chmod +x [driver].run.

If you opted to build a custom kernel and used LLVM, create a kernel.sh file with the following contents, make it executable with chmod +x kernel.sh, and run it with sudo kernel.sh.


IGNORE_CC_MISMATCH=1
LLVM=1
LD=ld.lld
CC=clang
CXX=clang++
/home/arjun/NVIDIA-Linux-aarch64-620.85.02.run -k 7.4.0-rc5arjun-00095-g0df89587a56e-dirty
        

If you opted to use the default kernel or built a custom one without LLVM/Clang, simply execute the .run file with sudo (no script needed).

Running it

Reboot your system and verify the new driver is present with nvidia-smi.

If that reports 620, you should be able to run blender-launcher and enable DLSS under the Denoise option in Blender.