Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 785432 Details for
Bug 693200
media-gfx/blender should use llvm.eclass / add rocm use flag
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch (diff between blender-3.1.2.ebuild and 3.2.0.ebuild) enabling rocm on blender
blender-rocm.patch (text/plain), 2.49 KB, created by
Yiyang Wu
on 2022-06-15 12:28:44 UTC
(
hide
)
Description:
Patch (diff between blender-3.1.2.ebuild and 3.2.0.ebuild) enabling rocm on blender
Filename:
MIME Type:
Creator:
Yiyang Wu
Created:
2022-06-15 12:28:44 UTC
Size:
2.49 KB
patch
obsolete
>--- media-gfx/blender/blender-3.1.2.ebuild 2022-06-14 16:49:04.607900825 +0800 >+++ media-gfx/blender/blender-3.2.0.ebuild 2022-06-15 20:25:21.112750143 +0800 >@@ -28,7 +28,7 @@ IUSE="+bullet +dds +fluid +openexr +tbb > alembic collada +color-management cuda +cycles \ > debug doc +embree +ffmpeg +fftw +gmp headless jack jemalloc jpeg2k \ > man +nanovdb ndof nls openal +oidn +openimageio +openmp +opensubdiv \ >- +openvdb +osl +pdf +potrace +pugixml pulseaudio sdl +sndfile test +tiff valgrind" >+ +openvdb +osl +pdf +potrace +pugixml pulseaudio rocm sdl +sndfile test +tiff valgrind" > RESTRICT="!test? ( test )" > > REQUIRED_USE="${PYTHON_REQUIRED_USE} >@@ -38,6 +38,7 @@ REQUIRED_USE="${PYTHON_REQUIRED_USE} > fluid? ( tbb ) > openvdb? ( tbb ) > osl? ( cycles ) >+ rocm? ( cycles ) > test? ( color-management )" > > # Library versions for official builds can be found in the blender source directory in: >@@ -98,6 +99,7 @@ RDEPEND="${PYTHON_DEPS} > potrace? ( media-gfx/potrace ) > pugixml? ( dev-libs/pugixml ) > pulseaudio? ( media-sound/pulseaudio ) >+ rocm? ( dev-util/hip ) > sdl? ( media-libs/libsdl2[sound,joystick] ) > sndfile? ( media-libs/libsndfile ) > tbb? ( dev-cpp/tbb:= ) >@@ -193,6 +195,11 @@ src_prepare() { > mv release/freedesktop/icons/symbolic/apps/blender-symbolic.svg release/freedesktop/icons/symbolic/apps/blender-${BV}-symbolic.svg || die > mv release/freedesktop/blender.desktop release/freedesktop/blender-${BV}.desktop || die > >+ if use rocm; then >+ local libhip_path=$(ldconfig -p | grep "libamdhip64.so$" | awk '{print $NF}') >+ sed -e "s|/opt/rocm/hip/lib/libamdhip64.so|${libhip_path}|" -i extern/hipew/src/hipew.c || die >+ fi >+ > if use test; then > # Without this the tests will try to use /usr/bin/blender and /usr/share/blender/ to run the tests. > sed -e "s|string(REPLACE.*|set(TEST_INSTALL_DIR ${ED}/usr/)|g" -i tests/CMakeLists.txt || die >@@ -217,6 +224,8 @@ src_configure() { > -DWITH_CXX_GUARDEDALLOC=$(usex debug) > -DWITH_CYCLES=$(usex cycles) > -DWITH_CYCLES_DEVICE_CUDA=$(usex cuda TRUE FALSE) >+ -DWITH_CYCLES_DEVICE_HIP=$(usex rocm TRUE FALSE) >+ -DWITH_CYCLES_HIP_BINARIES=$(usex rocm TRUE FALSE) > -DWITH_CYCLES_EMBREE=$(usex embree) > -DWITH_CYCLES_OSL=$(usex osl) > -DWITH_CYCLES_STANDALONE=OFF
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 693200
: 785432