Blender: Difference between revisions

Smudgebun (talk | contribs)
Blendfarm: Converted link to option template
Tags: Mobile edit Mobile web edit Advanced mobile edit
Smudgebun (talk | contribs)
HIP: Moved some non-Blender-specific information to AMD GPU, linked to there for more
Line 95: Line 95:


=== HIP ===
=== HIP ===
With the deprecation of the <code>blender-hip</code> package,<ref name="deprecate-hip"> {{pull|463064}}</ref> the easiest way to add Blender with HIP support is now with the <code>pkgsRocm.blender</code> package. Other methods are to use the <code>rocmSupport</code> flag the same way as [[#The cudaSupport Flag|#The cudaSupport Flag]], or to use a [[#Binary Packages|#Binary Package]].
With the deprecation of the <code>blender-hip</code> package,<ref name="deprecate-hip"> {{pull|463064}}</ref> the easiest way to add Blender with HIP support is now with the <code>pkgsRocm.blender</code> package. Other methods are to use the <code>rocmSupport</code> config variable, or to use a [[#Binary Packages|#Binary Package]].


Unlike <code>cudaSupport</code>, most if not all packages with <code>rocmSuppport</code> are built by Hydra and cached into cache.nixos.org. That said, it is still recommended to enable <code>rocmSupport</code> only as much as you will need it, to avoid the chance of pointless recompilation on your machine.
The below example is Blender-specific. For more general information on enabling ROCm/HIP in your configuration, see: [[AMD GPU#Enabling  ROCm & HIP For Packages]].
 
To activate the flag globally, run the following.
 
<syntaxhighlight lang="nix"> nixpkgs.config.rocmSupport = true; </syntaxhighlight>
 
Or, override specifically Blender with HIP support.


<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">