Hi I am building from VS2013 UI and I have little progress
I need just two CUDA architectures so according
https://wiki.blender.org/index.php/Dev:Source/Render/Cycles/Building
option(WITH_CYCLES_CUDA_BINARIES “Build Cycles CUDA binaries” ON)
set(CYCLES_CUDA_BINARIES_ARCH sm_50 sm_61 CACHE STRING “CUDA architectures to build binaries for”)
I have chosen sm_50 sm_61
I again read this
https://wiki.blender.org/index.php/Dev:Doc/Building_Blender/Windows/msvc/CMake
and tried this option to build VS project
D:\blender-git\blender>make release nobuild
.
.
.
– Found CUDA: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v8.0 (found version “8.0”)
– CUDA nvcc = C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v8.0/bin/nvcc.exe
.
.
.
– Configuring done
– Generating done
– Build files have been written to: D:/blender-git/build_windows_Release_x64_vc12_Release
Now I build from VS2013 UI project
1>------ Build started: Project: ZERO_CHECK, Configuration: Release x64 ------
.
.
.
146>------ Build started: Project: blenderplayer, Configuration: Release x64 ------
144> Internal error
144>CUSTOMBUILD : nvcc warning : The ‘compute_20’, ‘sm_20’, and ‘sm_21’ architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
144> kernel.cu
144>CUSTOMBUILD : nvcc error : ‘ptxas’ died with status 0xC0000005 (ACCESS_VIOLATION)
146> Building Custom Rule D:/blender-git/blender/source/blenderplayer/CMakeLists.txt
.
.
.
149> CMake Error at source/creator/cmake_install.cmake:352 (file):
149> file INSTALL cannot find
149> “D:/blender-git/build_windows_Release_x64_vc12_Release/intern/cycles/kernel/kernel_sm_20.cubin”.
149> Call Stack (most recent call first):
149> cmake_install.cmake:35 (include)
149>
149>
149>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: The command “setlocal
149>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: “C:\Program Files\CMake\bin\cmake.exe” -DBUILD_TYPE=Release -P cmake_install.cmake
149>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd
149>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: :cmEnd
149>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
149>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: :cmErrorLevel
149>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: exit /b %1
149>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: :cmDone
149>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: if %errorlevel% neq 0 goto :VCEnd
149>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: :VCEnd” exited with code 1.
========== Build: 147 succeeded, 2 failed, 0 up-to-date, 0 skipped ==========
So CUDA is recognized but … nvcc error : ‘ptxas’ died with status 0xC0000005 (ACCESS_VIOLATION)
nvcc error : ‘ptxas’ died with status 0xC0000005 (ACCESS_VIOLATION)
do you know what this could mean ?