blender: 5.0.1 -> 5.1.0#502842
Conversation
|
Successfully tested CUDA build and render on x86_64-linux, but ROCm is broken. |
482046f to
70118d4
Compare
Thanks. ROCm is fixed now, as far as I can tell. |
drupol
left a comment
There was a problem hiding this comment.
Diff LGTM, I was wondering if submitting the patch upstream would make sense.
70118d4 to
87bc123
Compare
|
Were you able to perform an HIP (non-RT) Cycles GPU render? It segfaults for me, but it also segfaults on 5.0.1 so… Blender HIP RT has been broken for a while in Nixpkgs (it can’t properly detect that it’s supported). |
Oh, that's good to know! I actually am too suffering from that same segfault you are talking about. I originally assumed it was an issue with my GPU because no one else seemed to have that issue from what I could tell. I have been debugging this a bit since I published this PR. Let me share what I know: Looking at the backtrace, it seems that rocm-comgr calls rocm-llvm, which—surprisingly—calls LLVM-lib 19 (even though it should be LLVM 22.0.0!). The reason for this is that OpenShadingLanguage imports LLVM-lib 19. I'll be back later. Hopefully I'll find a fix that does not involve disabling OSL. If anyone needs a temporary fix, switching |
amarshall
left a comment
There was a problem hiding this comment.
I think this PR then is fine since it’s not breaking anything “new”. It might make sense to add an additional commit to e.g.
diff --git a/pkgs/by-name/bl/blender/package.nix b/pkgs/by-name/bl/blender/package.nix
index 91df7b38b283..0605cf7712fe 100644
--- a/pkgs/by-name/bl/blender/package.nix
+++ b/pkgs/by-name/bl/blender/package.nix
@@ -176,7 +176,7 @@ stdenv'.mkDerivation (finalAttrs: {
(lib.cmakeBool "WITH_CYCLES_DEVICE_ONEAPI" false)
(lib.cmakeBool "WITH_CYCLES_DEVICE_OPTIX" cudaSupport)
(lib.cmakeBool "WITH_CYCLES_EMBREE" embreeSupport)
- (lib.cmakeBool "WITH_CYCLES_OSL" true)
+ (lib.cmakeBool "WITH_CYCLES_OSL" (!rocmSupport))
(lib.cmakeBool "WITH_SYSTEM_GLOG" true)
(lib.cmakeBool "WITH_HYDRA" openUsdSupport)
(lib.cmakeBool "WITH_INSTALL_PORTABLE" false)to at least unbreak HIP.
|
Perhaps we could do it in a new PR so we can move on in this PR faster? |
|
I issued #504149, which solves the segfault. |
|
Wait, why did this target staging? It can go to master.
|
Oops, that was not my intention 😅 |
|
A quick note on the Eigen patch: there has been a PR to Blender that would fix the build. |
|
Cherry-pick to master #505352 |
Changelog
Blender documentation on library changes:
Things done
passthru.tests.Appears to segfault independently of this change.
nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.nixpkgs-reviewresultGenerated using
nixpkgs-review.Command:
nixpkgs-reviewCommit:
70118d4b59ca11af7a2e4b75fc18310db2108e99x86_64-linux✅ 2 packages built: