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