Blender working with Cuda on Freebsd

Blender working with Cuda now on github

Launched with a desktop entry on Freebsd
Videos directory mounted from Freebsd into the container for file access
and audio works as well if you need it.


Blender install instructions.


Note:

Blender is running using X11 so if you are using Wayland you will need XWayland enabled.

The Blender compose.yaml file has a tmpfs setting for memory set at 14g



Code:
  rocky-shm:
    driver: local
    driver_opts:
      type: tmpfs
      device: tmpfs
      o: "size=14g,mode=1777"

If you want to increase the memory you can create a custom directory.

Code:
mkdir -p ~/podman/freebsd-cuda/containers/custom

Copy the blender directory into the custom directory you created

Code:
cp -r ~/podman/freebsd-cuda/containers/graphics/blender ~/podman/freebsd-cuda/containers/custom

Edit the compose.yaml file in the custom/blender directory

Change the memory for example to 32g

Code:
  rocky-shm:
    driver: local
    driver_opts:
      type: tmpfs
      device: tmpfs
      o: "size=32g,mode=1777"

And then create the blender.desktop file in the following location.

Code:
vi ~/.local/share/applications/blender.desktop

With this code.

Code:
[Desktop Entry]
Name=Blender
GenericName=3D modeler
Comment=3D modeling, animation, rendering and post-production
Keywords=3d;cg;modeling;animation;painting;sculpting;texturing;video editing;video tracking;rendering;render engine;cycles;python;
Exec=sh -c "wrapper-freebsd -j 'blender' -a '${HOME}/blender/blender' -c "${HOME}/podman/freebsd-cuda/containers/custom/blender/compose.yaml" -e "${HOME}/podman/freebsd-cuda/containers/custom/blender/.env" %f"
Icon=blender
Terminal=false
Type=Application
PrefersNonDefaultGPU=true
Categories=Graphics;3DGraphics;
MimeType=application/x-blender;
StartupWMClass=Blender

Any questions or issues give me a shout.

Screenshots

20260702_20h18m43s_grim.png


Cycles showing Cuda and my GPU

20260702_20h18m59s_grim.png
 
Back
Top