fix: blender inline
This commit is contained in:
+3
-5
@@ -15,18 +15,16 @@ WORKDIR /home/rocm/blender
|
|||||||
RUN ./build_files/build_environment/install_linux_packages.py
|
RUN ./build_files/build_environment/install_linux_packages.py
|
||||||
RUN ./build_files/utils/make_update.py --use-linux-libraries
|
RUN ./build_files/utils/make_update.py --use-linux-libraries
|
||||||
|
|
||||||
# Ref: https://github.com/xuhuisheng/rocm-gfx803/blob/master/blender.md
|
# > Ref: https://github.com/xuhuisheng/rocm-gfx803/blob/master/blender.md
|
||||||
RUN sed -i 's/__noinline__/__inline__/g' intern/cycles/kernel/device/hip/compat.h
|
# RUN sed -i 's/__noinline__/__inline__/g' intern/cycles/kernel/device/hip/compat.h
|
||||||
RUN sed -i 's/major >= 9/major >= 8/g' intern/cycles/device/hip/util.h
|
RUN sed -i 's/major >= 9/major >= 8/g' intern/cycles/device/hip/util.h
|
||||||
|
|
||||||
WORKDIR /home/rocm/blender/build
|
WORKDIR /home/rocm/blender/build
|
||||||
RUN cmake \
|
RUN cmake \
|
||||||
-DWITH_CYCLES_HIP_BINARIES=ON \
|
-DWITH_CYCLES_HIP_BINARIES=ON \
|
||||||
-DCYCLES_HIP_BINARIES_ARCH=${HIP_ARCH} \
|
-DCYCLES_HIP_BINARIES_ARCH=${HIP_ARCH} \
|
||||||
-DCMAKE_INSTALL_PREFIX=/opt/blender \
|
|
||||||
-DWITH_INSTALL_PORTABLE=OFF \
|
|
||||||
..
|
..
|
||||||
RUN make -j$(nproc)
|
RUN make -j$(nproc)
|
||||||
RUN cpack -G DEB
|
RUN cpack -G TXZ
|
||||||
|
|
||||||
CMD ["bash", "-l"]
|
CMD ["bash", "-l"]
|
||||||
|
|||||||
Reference in New Issue
Block a user