blender-hip: add blender with hip support (#187241)
This commit is contained in:
parent
3bffe87eaf
commit
a3c401f35e
2 changed files with 8 additions and 1 deletions
|
@ -6,6 +6,7 @@
|
|||
, zlib, zstd, fftw, opensubdiv, freetype, jemalloc, ocl-icd, addOpenGLRunpath
|
||||
, jackaudioSupport ? false, libjack2
|
||||
, cudaSupport ? config.cudaSupport or false, cudaPackages ? {}
|
||||
, hipSupport ? false, hip # comes with a significantly larger closure size
|
||||
, colladaSupport ? true, opencollada
|
||||
, spaceNavSupport ? stdenv.isLinux, libspnav
|
||||
, makeWrapper
|
||||
|
@ -86,7 +87,11 @@ stdenv.mkDerivation rec {
|
|||
'${python310Packages.numpy}/${python.sitePackages}/numpy'
|
||||
'' else ''
|
||||
substituteInPlace extern/clew/src/clew.c --replace '"libOpenCL.so"' '"${ocl-icd}/lib/libOpenCL.so"'
|
||||
'');
|
||||
'') +
|
||||
(if hipSupport then ''
|
||||
substituteInPlace extern/hipew/src/hipew.c --replace '"/opt/rocm/hip/lib/libamdhip64.so"' '"${hip}/lib/libamdhip64.so"'
|
||||
substituteInPlace extern/hipew/src/hipew.c --replace '"opt/rocm/hip/bin"' '"${hip}/bin"'
|
||||
'' else "");
|
||||
|
||||
cmakeFlags =
|
||||
[
|
||||
|
|
|
@ -26344,6 +26344,8 @@ with pkgs;
|
|||
|
||||
blender-with-packages = callPackage ../applications/misc/blender/wrapper.nix {};
|
||||
|
||||
blender-hip = blender.override { hipSupport = true; };
|
||||
|
||||
blflash = callPackage ../tools/misc/blflash { };
|
||||
|
||||
blogc = callPackage ../applications/misc/blogc { };
|
||||
|
|
Loading…
Reference in a new issue