Mageia Bugzilla – Attachment 10837 Details for
Bug 24411
Error: CUDA kernel compilation failed
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
blender spec file with conditional flag for building offline cuda kernels
blender.spec (text/plain), 7.79 KB, created by
Giuseppe Ghibò
on 2019-03-04 16:48:10 CET
(
hide
)
Description:
blender spec file with conditional flag for building offline cuda kernels
Filename:
MIME Type:
Creator:
Giuseppe Ghibò
Created:
2019-03-04 16:48:10 CET
Size:
7.79 KB
patch
obsolete
># branch: blender2.7 ># commit: ecd66f69e7b66e8a6ed9b5f39c7dfe272dfbbbed ># comment out when not git-snapshot >%define git git20190304 > ># to get current git release use: ># ># git clone -b blender2.7 git://git.blender.org/blender.git ># pushd blender ># make update ># GITDATE=$(git log -n 1 --pretty='format:%cd' --date=format:'%Y%m%d' HEAD) ># git archive -o ../blender-2.79b-git${GITDATE}.tar --prefix=blender-2.79b-git${GITDATE}/ --format=tar HEAD ># pigz -9vf ../blender-2.79b-git${GITDATE}.tar ># popd > >%define __python %{__python3} > >%define rel 1 > ># Build and bundle Cuda Cubins >%define build_cuda_cubins 1 >%{?_with_cuda_cubins: %global build_cuda_cubins 1} >%{?_without_cuda_cubins: %global build_cuda_cubins 0} > >Name: blender >Version: 2.79b >Release: %mkrel %{?git:14.%git.}%{rel} >Summary: A fully functional 3D modeling/rendering/animation package >License: GPLv2+ >Group: Graphics/3D >URL: http://www.blender.org/ >Source0: http://download.blender.org/source/%{name}-%{version}%{?git:-%git}.tar.gz >Patch0: blender-2.76-localedir.patch >Patch1: blender-2.60-error-when-missing-sse.patch >Patch2: blender-2.58-static-lib.patch ># Patch submitted upstream - Blender Patches item #19234, >Patch4: blender-2.67a-uninit-var.patch >Patch5: blender-2.79b-sse2.patch >Patch6: blender-2.79b-link.patch >Patch7: blender-2.78a-add-blenderplayer-manpage.patch >Patch8: blender-2.79b-python37.patch >Patch9: blender-2.79b-fix-non-sse-build.patch >BuildRequires: cmake >= 2.8 >BuildRequires: git-core >BuildRequires: boost-devel >BuildRequires: ffmpeg-devel >BuildRequires: libgomp-devel >BuildRequires: lzo-devel >BuildRequires: openimageio-devel >BuildRequires: openvdb-devel >BuildRequires: spnav-devel >BuildRequires: cmake(Alembic) >BuildRequires: cmake(OpenCOLLADA) >BuildRequires: pkgconfig(audaspace) >BuildRequires: pkgconfig(eigen3) >BuildRequires: pkgconfig(fftw3) >BuildRequires: pkgconfig(freetype2) >BuildRequires: pkgconfig(glew) >BuildRequires: pkgconfig(glu) >BuildRequires: pkgconfig(jack) >BuildRequires: pkgconfig(jemalloc) >BuildRequires: pkgconfig(libjpeg) >BuildRequires: pkgconfig(libopenjpeg1) >BuildRequires: pkgconfig(libpng) >BuildRequires: pkgconfig(libtiff-4) >BuildRequires: pkgconfig(OpenColorIO) >BuildRequires: pkgconfig(OpenEXR) >BuildRequires: pkgconfig(openal) >BuildRequires: pkgconfig(python3) >= 3.2 >BuildRequires: pkgconfig(samplerate) >BuildRequires: pkgconfig(sdl2) >BuildRequires: pkgconfig(sndfile) >BuildRequires: pkgconfig(x11) >BuildRequires: pkgconfig(xi) >BuildRequires: python3dist(requests) >%if %{build_cuda_cubins} >Requires: nvidia-cuda-toolkit >BuildRequires: nvidia-cuda-toolkit-devel >%endif >Requires: python(abi) >= 3.2 >Requires: python3dist(requests) >Requires: python3dist(numpy) >Requires: python3dist(audaspace) >Requires(post,preun): GConf2 > >%description >Blender is the in-house software of a high quality animation studio. >It has proven to be an extremely fast and versatile design instrument. >The software has a personal touch, offering a unique approach to the >world of three dimensions. Blender can be used to create TV >commercials, to make technical visualizations or business graphics, to >do some morphing, or to design user interfaces. Developers can easily >build and manage complex environments. The renderer is versatile and >extremely fast. All basic animation principles (curves and keys) are >implemented. > >%prep >%setup -q -n %{name}-%{version}%{?git:-%git} > >%patch0 -p1 -b .localedir >%ifarch %{ix86} >%patch1 -p0 -b .sse >%endif >%patch2 -p0 -b .static >%patch4 -p0 -b .uninit >%patch5 -p1 -b .sse2 >%patch6 -p1 -b .link >%patch7 -p1 -b .manpage >%patch8 -p1 -b .python37 >%patch9 -p1 -b .non-sse > >%build >export LD=/usr/bin/ld.gold >%ifarch %{ix86} ># build non-sse flavour >%cmake \ > -DCMAKE_SKIP_RPATH=ON \ > -DBUILD_SHARED_LIBS=OFF \ > -DWITH_INSTALL_PORTABLE=OFF \ > -DWITH_GAMEENGINE:BOOL=ON \ > -DWITH_PLAYER:BOOL=ON \ > -DWITH_PYTHON:BOOL=ON \ > -DPYTHON_VERSION:STRING=%{python3_version} \ > -DWITH_PYTHON_INSTALL:BOOL=OFF \ > -DWITH_CODEC_FFMPEG:BOOL=ON \ > -DWITH_CODEC_SNDFILE:BOOL=ON \ > -DWITH_IMAGE_OPENJPEG:BOOL=ON \ > -DWITH_OPENCOLLADA:BOOL=ON \ > -DWITH_FFTW3:BOOL=ON \ > -DWITH_MOD_OCEANSIM:BOOL=ON \ > -DWITH_CYCLES:BOOL=ON \ > -DWITH_CXX_GUARDEDALLOC:BOOL=OFF \ > -DWITH_MEM_JEMALLOC:BOOL=ON \ > -DWITH_OPENCOLORIO:BOOL=ON \ > -DWITH_SDL:BOOL=ON \ > -DWITH_ALEMBIC:BOOL=ON \ > -DWITH_OPENVDB:BOOL=ON \ > -DWITH_OPENVDB_BLOSC:BOOL=ON \ > -DWITH_OPENVDB_3_ABI_COMPATIBLE:BOOL=ON \ > -DWITH_DOC_MANPAGE:BOOL=ON \ > -DWITH_INPUT_NDOF:BOOL=ON \ > -DWITH_SYSTEM_AUDASPACE:BOOL=ON \ > -DWITH_SYSTEM_EIGEN3:BOOL=ON \ > -DWITH_SYSTEM_LZO:BOOL=ON \ > -DWITH_SYSTEM_GLEW:BOOL=ON \ > -DWITH_CPU_SSE:BOOL=OFF \ > -DSUPPORT_SSE2_BUILD:BOOL=OFF \ > -DSUPPORT_SSE_BUILD:BOOL=OFF \ > -DWITH_RAYOPTIMIZATION:BOOL=OFF \ > -DWITH_JACK:BOOL=ON >%make_build >cd .. >mv build non-sse >%endif > >#build sse flavour >%cmake \ > -DCMAKE_SKIP_RPATH=ON \ > -DBUILD_SHARED_LIBS=OFF \ > -DWITH_INSTALL_PORTABLE=OFF \ > -DWITH_GAMEENGINE:BOOL=ON \ > -DWITH_PLAYER:BOOL=ON \ > -DWITH_PYTHON:BOOL=ON \ > -DPYTHON_VERSION:STRING=%{python3_version} \ > -DWITH_PYTHON_INSTALL:BOOL=OFF \ > -DWITH_CODEC_FFMPEG:BOOL=ON \ > -DWITH_CODEC_SNDFILE:BOOL=ON \ > -DWITH_IMAGE_OPENJPEG:BOOL=ON \ > -DWITH_OPENCOLLADA:BOOL=ON \ > -DWITH_FFTW3:BOOL=ON \ > -DWITH_MOD_OCEANSIM:BOOL=ON \ > -DWITH_CYCLES:BOOL=ON \ > -DWITH_CXX_GUARDEDALLOC:BOOL=OFF \ > -DWITH_MEM_JEMALLOC:BOOL=ON \ > -DWITH_OPENCOLORIO:BOOL=ON \ > -DWITH_SDL:BOOL=ON \ > -DWITH_ALEMBIC:BOOL=ON \ > -DWITH_OPENVDB:BOOL=ON \ > -DWITH_OPENVDB_BLOSC:BOOL=ON \ > -DWITH_OPENVDB_3_ABI_COMPATIBLE:BOOL=ON \ > -DWITH_DOC_MANPAGE:BOOL=ON \ > -DWITH_INPUT_NDOF:BOOL=ON \ > -DWITH_SYSTEM_AUDASPACE:BOOL=ON \ > -DWITH_SYSTEM_EIGEN3:BOOL=ON \ > -DWITH_SYSTEM_LZO:BOOL=ON \ > -DWITH_SYSTEM_GLEW:BOOL=ON \ >%ifarch %{ix86} > -DSUPPORT_SSE2_BUILD=OFF \ >%endif >%ifarch %{ix86} x86_64 > -DWITH_RAYOPTIMIZATION:BOOL=ON \ > -DWITH_CYCLES:BOOL=ON \ >%else > -DWITH_RAYOPTIMIZATION:BOOL=OFF \ > -DWITH_CYCLES:BOOL=OFF \ >%endif >%if %{build_cuda_cubins} > -DWITH_CYCLES_CUDA_BINARIES:BOOL=ON \ > -DCYCLES_CUDA_BINARIES_ARCH:STRING="sm_30;sm_32;sm_35;sm_37;sm_50;sm_52;sm_53;sm_60;sm_61;sm_62;sm_70;sm_72;sm_75" \ > -DCUDA_TOOLKIT_ROOT_DIR:STRING=%{_usr} \ >%endif > -DWITH_JACK:BOOL=ON > >%make_build > >%install >#install sse flavour >%make_install -C build > >%ifarch %{ix86} >mv %{buildroot}%{_bindir}/%{name} %{buildroot}%{_bindir}/%{name}.sse > >#install non-sse flavour >rm -fr build >mv non-sse build >%make_install -C build >mv %{buildroot}%{_bindir}/%{name} %{buildroot}%{_bindir}/%{name}.nonsse > ># install wrapper >cat >> %{buildroot}%{_bindir}/blender <<EOF >if [ -e /proc/cpuinfo ]; then > SSE="\`cat /proc/cpuinfo | grep flags | grep sse\`" >fi > >if [ "x\$SSE" == x ]; then > %{_bindir}/%{name}.nonsse "\$@" >else > %{_bindir}/%{name}.sse "\$@" >fi >EOF >chmod 0755 %{buildroot}%{_bindir}/blender >%endif > >sed -i -e 's,#!/usr/bin/python,#!/usr/bin/python3,' %{buildroot}%{_bindir}/blender-thumbnailer.py %{buildroot}%{_datadir}/%{name}/*/scripts/modules/blend_render_info.py > >%find_lang %{name} > >%post >if [ -x %{_gconftool_bin} ]; then > %{_gconftool_bin} --direct --config-source xml:readwrite:%{_sysconfdir}/gconf/gconf.xml.defaults --type boolean --set /desktop/gnome/thumbnailers/application@x-blender/enable true > %{_gconftool_bin} --direct --config-source xml:readwrite:%{_sysconfdir}/gconf/gconf.xml.defaults --type string --set /desktop/gnome/thumbnailers/application@x-blender/command "blender-thumbnailer.py %u %o" >fi > >%preun >if [ "$1" = "0" -a -x %{_gconftool_bin} ]; then > %{_gconftool_bin} --direct --config-source xml:readwrite:%{_sysconfdir}/gconf/gconf.xml.defaults --unset /desktop/gnome/thumbnailers/application@x-blender/enable > %{_gconftool_bin} --direct --config-source xml:readwrite:%{_sysconfdir}/gconf/gconf.xml.defaults --unset /desktop/gnome/thumbnailers/application@x-blender/command >fi > >%files -f %{name}.lang >%doc release/text/* >%doc release/datafiles/LICENSE*.ttf.txt >%{_bindir}/* >%{_datadir}/applications/*.desktop >%{_datadir}/%{name}/ >%{_mandir}/man1/%{name}*.1.* >%{_iconsdir}/hicolor/*/apps/%{name}.*
# branch: blender2.7 # commit: ecd66f69e7b66e8a6ed9b5f39c7dfe272dfbbbed # comment out when not git-snapshot %define git git20190304 # to get current git release use: # # git clone -b blender2.7 git://git.blender.org/blender.git # pushd blender # make update # GITDATE=$(git log -n 1 --pretty='format:%cd' --date=format:'%Y%m%d' HEAD) # git archive -o ../blender-2.79b-git${GITDATE}.tar --prefix=blender-2.79b-git${GITDATE}/ --format=tar HEAD # pigz -9vf ../blender-2.79b-git${GITDATE}.tar # popd %define __python %{__python3} %define rel 1 # Build and bundle Cuda Cubins %define build_cuda_cubins 1 %{?_with_cuda_cubins: %global build_cuda_cubins 1} %{?_without_cuda_cubins: %global build_cuda_cubins 0} Name: blender Version: 2.79b Release: %mkrel %{?git:14.%git.}%{rel} Summary: A fully functional 3D modeling/rendering/animation package License: GPLv2+ Group: Graphics/3D URL: http://www.blender.org/ Source0: http://download.blender.org/source/%{name}-%{version}%{?git:-%git}.tar.gz Patch0: blender-2.76-localedir.patch Patch1: blender-2.60-error-when-missing-sse.patch Patch2: blender-2.58-static-lib.patch # Patch submitted upstream - Blender Patches item #19234, Patch4: blender-2.67a-uninit-var.patch Patch5: blender-2.79b-sse2.patch Patch6: blender-2.79b-link.patch Patch7: blender-2.78a-add-blenderplayer-manpage.patch Patch8: blender-2.79b-python37.patch Patch9: blender-2.79b-fix-non-sse-build.patch BuildRequires: cmake >= 2.8 BuildRequires: git-core BuildRequires: boost-devel BuildRequires: ffmpeg-devel BuildRequires: libgomp-devel BuildRequires: lzo-devel BuildRequires: openimageio-devel BuildRequires: openvdb-devel BuildRequires: spnav-devel BuildRequires: cmake(Alembic) BuildRequires: cmake(OpenCOLLADA) BuildRequires: pkgconfig(audaspace) BuildRequires: pkgconfig(eigen3) BuildRequires: pkgconfig(fftw3) BuildRequires: pkgconfig(freetype2) BuildRequires: pkgconfig(glew) BuildRequires: pkgconfig(glu) BuildRequires: pkgconfig(jack) BuildRequires: pkgconfig(jemalloc) BuildRequires: pkgconfig(libjpeg) BuildRequires: pkgconfig(libopenjpeg1) BuildRequires: pkgconfig(libpng) BuildRequires: pkgconfig(libtiff-4) BuildRequires: pkgconfig(OpenColorIO) BuildRequires: pkgconfig(OpenEXR) BuildRequires: pkgconfig(openal) BuildRequires: pkgconfig(python3) >= 3.2 BuildRequires: pkgconfig(samplerate) BuildRequires: pkgconfig(sdl2) BuildRequires: pkgconfig(sndfile) BuildRequires: pkgconfig(x11) BuildRequires: pkgconfig(xi) BuildRequires: python3dist(requests) %if %{build_cuda_cubins} Requires: nvidia-cuda-toolkit BuildRequires: nvidia-cuda-toolkit-devel %endif Requires: python(abi) >= 3.2 Requires: python3dist(requests) Requires: python3dist(numpy) Requires: python3dist(audaspace) Requires(post,preun): GConf2 %description Blender is the in-house software of a high quality animation studio. It has proven to be an extremely fast and versatile design instrument. The software has a personal touch, offering a unique approach to the world of three dimensions. Blender can be used to create TV commercials, to make technical visualizations or business graphics, to do some morphing, or to design user interfaces. Developers can easily build and manage complex environments. The renderer is versatile and extremely fast. All basic animation principles (curves and keys) are implemented. %prep %setup -q -n %{name}-%{version}%{?git:-%git} %patch0 -p1 -b .localedir %ifarch %{ix86} %patch1 -p0 -b .sse %endif %patch2 -p0 -b .static %patch4 -p0 -b .uninit %patch5 -p1 -b .sse2 %patch6 -p1 -b .link %patch7 -p1 -b .manpage %patch8 -p1 -b .python37 %patch9 -p1 -b .non-sse %build export LD=/usr/bin/ld.gold %ifarch %{ix86} # build non-sse flavour %cmake \ -DCMAKE_SKIP_RPATH=ON \ -DBUILD_SHARED_LIBS=OFF \ -DWITH_INSTALL_PORTABLE=OFF \ -DWITH_GAMEENGINE:BOOL=ON \ -DWITH_PLAYER:BOOL=ON \ -DWITH_PYTHON:BOOL=ON \ -DPYTHON_VERSION:STRING=%{python3_version} \ -DWITH_PYTHON_INSTALL:BOOL=OFF \ -DWITH_CODEC_FFMPEG:BOOL=ON \ -DWITH_CODEC_SNDFILE:BOOL=ON \ -DWITH_IMAGE_OPENJPEG:BOOL=ON \ -DWITH_OPENCOLLADA:BOOL=ON \ -DWITH_FFTW3:BOOL=ON \ -DWITH_MOD_OCEANSIM:BOOL=ON \ -DWITH_CYCLES:BOOL=ON \ -DWITH_CXX_GUARDEDALLOC:BOOL=OFF \ -DWITH_MEM_JEMALLOC:BOOL=ON \ -DWITH_OPENCOLORIO:BOOL=ON \ -DWITH_SDL:BOOL=ON \ -DWITH_ALEMBIC:BOOL=ON \ -DWITH_OPENVDB:BOOL=ON \ -DWITH_OPENVDB_BLOSC:BOOL=ON \ -DWITH_OPENVDB_3_ABI_COMPATIBLE:BOOL=ON \ -DWITH_DOC_MANPAGE:BOOL=ON \ -DWITH_INPUT_NDOF:BOOL=ON \ -DWITH_SYSTEM_AUDASPACE:BOOL=ON \ -DWITH_SYSTEM_EIGEN3:BOOL=ON \ -DWITH_SYSTEM_LZO:BOOL=ON \ -DWITH_SYSTEM_GLEW:BOOL=ON \ -DWITH_CPU_SSE:BOOL=OFF \ -DSUPPORT_SSE2_BUILD:BOOL=OFF \ -DSUPPORT_SSE_BUILD:BOOL=OFF \ -DWITH_RAYOPTIMIZATION:BOOL=OFF \ -DWITH_JACK:BOOL=ON %make_build cd .. mv build non-sse %endif #build sse flavour %cmake \ -DCMAKE_SKIP_RPATH=ON \ -DBUILD_SHARED_LIBS=OFF \ -DWITH_INSTALL_PORTABLE=OFF \ -DWITH_GAMEENGINE:BOOL=ON \ -DWITH_PLAYER:BOOL=ON \ -DWITH_PYTHON:BOOL=ON \ -DPYTHON_VERSION:STRING=%{python3_version} \ -DWITH_PYTHON_INSTALL:BOOL=OFF \ -DWITH_CODEC_FFMPEG:BOOL=ON \ -DWITH_CODEC_SNDFILE:BOOL=ON \ -DWITH_IMAGE_OPENJPEG:BOOL=ON \ -DWITH_OPENCOLLADA:BOOL=ON \ -DWITH_FFTW3:BOOL=ON \ -DWITH_MOD_OCEANSIM:BOOL=ON \ -DWITH_CYCLES:BOOL=ON \ -DWITH_CXX_GUARDEDALLOC:BOOL=OFF \ -DWITH_MEM_JEMALLOC:BOOL=ON \ -DWITH_OPENCOLORIO:BOOL=ON \ -DWITH_SDL:BOOL=ON \ -DWITH_ALEMBIC:BOOL=ON \ -DWITH_OPENVDB:BOOL=ON \ -DWITH_OPENVDB_BLOSC:BOOL=ON \ -DWITH_OPENVDB_3_ABI_COMPATIBLE:BOOL=ON \ -DWITH_DOC_MANPAGE:BOOL=ON \ -DWITH_INPUT_NDOF:BOOL=ON \ -DWITH_SYSTEM_AUDASPACE:BOOL=ON \ -DWITH_SYSTEM_EIGEN3:BOOL=ON \ -DWITH_SYSTEM_LZO:BOOL=ON \ -DWITH_SYSTEM_GLEW:BOOL=ON \ %ifarch %{ix86} -DSUPPORT_SSE2_BUILD=OFF \ %endif %ifarch %{ix86} x86_64 -DWITH_RAYOPTIMIZATION:BOOL=ON \ -DWITH_CYCLES:BOOL=ON \ %else -DWITH_RAYOPTIMIZATION:BOOL=OFF \ -DWITH_CYCLES:BOOL=OFF \ %endif %if %{build_cuda_cubins} -DWITH_CYCLES_CUDA_BINARIES:BOOL=ON \ -DCYCLES_CUDA_BINARIES_ARCH:STRING="sm_30;sm_32;sm_35;sm_37;sm_50;sm_52;sm_53;sm_60;sm_61;sm_62;sm_70;sm_72;sm_75" \ -DCUDA_TOOLKIT_ROOT_DIR:STRING=%{_usr} \ %endif -DWITH_JACK:BOOL=ON %make_build %install #install sse flavour %make_install -C build %ifarch %{ix86} mv %{buildroot}%{_bindir}/%{name} %{buildroot}%{_bindir}/%{name}.sse #install non-sse flavour rm -fr build mv non-sse build %make_install -C build mv %{buildroot}%{_bindir}/%{name} %{buildroot}%{_bindir}/%{name}.nonsse # install wrapper cat >> %{buildroot}%{_bindir}/blender <<EOF if [ -e /proc/cpuinfo ]; then SSE="\`cat /proc/cpuinfo | grep flags | grep sse\`" fi if [ "x\$SSE" == x ]; then %{_bindir}/%{name}.nonsse "\$@" else %{_bindir}/%{name}.sse "\$@" fi EOF chmod 0755 %{buildroot}%{_bindir}/blender %endif sed -i -e 's,#!/usr/bin/python,#!/usr/bin/python3,' %{buildroot}%{_bindir}/blender-thumbnailer.py %{buildroot}%{_datadir}/%{name}/*/scripts/modules/blend_render_info.py %find_lang %{name} %post if [ -x %{_gconftool_bin} ]; then %{_gconftool_bin} --direct --config-source xml:readwrite:%{_sysconfdir}/gconf/gconf.xml.defaults --type boolean --set /desktop/gnome/thumbnailers/application@x-blender/enable true %{_gconftool_bin} --direct --config-source xml:readwrite:%{_sysconfdir}/gconf/gconf.xml.defaults --type string --set /desktop/gnome/thumbnailers/application@x-blender/command "blender-thumbnailer.py %u %o" fi %preun if [ "$1" = "0" -a -x %{_gconftool_bin} ]; then %{_gconftool_bin} --direct --config-source xml:readwrite:%{_sysconfdir}/gconf/gconf.xml.defaults --unset /desktop/gnome/thumbnailers/application@x-blender/enable %{_gconftool_bin} --direct --config-source xml:readwrite:%{_sysconfdir}/gconf/gconf.xml.defaults --unset /desktop/gnome/thumbnailers/application@x-blender/command fi %files -f %{name}.lang %doc release/text/* %doc release/datafiles/LICENSE*.ttf.txt %{_bindir}/* %{_datadir}/applications/*.desktop %{_datadir}/%{name}/ %{_mandir}/man1/%{name}*.1.* %{_iconsdir}/hicolor/*/apps/%{name}.*
View Attachment As Raw
Actions:
View
Attachments on
bug 24411
:
10794
|
10795
|
10796
|
10801
|
10804
|
10805
|
10806
|
10811
|
10812
|
10813
|
10814
|
10815
|
10817
|
10818
|
10819
|
10822
|
10823
|
10824
|
10825
|
10826
|
10827
|
10828
|
10829
|
10831
|
10832
|
10833
|
10835
| 10837 |
10839
|
10869
|
10870
|
10871
|
10872