Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HEAD build fails with cuda 9.1, VS15.5.2, W10 16299 #10334

Open
mprevot opened this issue Dec 16, 2017 · 4 comments
Open

HEAD build fails with cuda 9.1, VS15.5.2, W10 16299 #10334

mprevot opened this issue Dec 16, 2017 · 4 comments

Comments

@mprevot
Copy link

mprevot commented Dec 16, 2017

Summary

HEAD (16.12.2017) Build fails with:
nvcc error : 'cicc' died with status 0xC0000005 (ACCESS_VIOLATION) [I:\opencv-master\build\modules\core\opencv_core.vcxproj]

System information (version)
  • OpenCV HEAD (16 december 2017) | 3.4RC
  • Windows 10 enterprise 64bits 1709 (build 16299)
  • VS2017 15.5.2
  • Windows SDK 1709 (build 16299)
  • Cuda 9.1
  • compiler MSVC / 14.12.25827
Detailed description

OpenCV build fails at opencv_core, in a such manner:

output[opencv_core]fails.txt

Steps to reproduce

I use this bash / powershell script:

$src = "I:/opencv-master/opencv"
$build = "I:/opencv-master/build"
$target = "Visual Studio 15 2017 Win64"
$ipsxe = "I:\IntelSWTools\compilers_and_libraries\windows\bin\ipsxe-comp-vars.bat"
$env:Path += ";C:\Program Files\CMake\bin"
$env:CUDA_PATH = "I:\Nvidia\Cuda\9.1"
$env:GSTREAMER_DIR = "I:/gstreamer/1.0/x86_64/"

#cd I:/opencv-master/
#bash update.sh (cd opencv && git pull && cd ../opencv_contrib && git pull)
cd $build
#iex "$ipsxe intel64 vs2017"

rm -r CMake*
cmake -G $target '
-DBUILD_JAVA=false -DWITH_MATLAB=false -DBUILD_DOC=false -DBUILD_PERF_TESTS=false -DBUILD_TESTS=false '
-DOPENCV_ENABLE_NONFREE=true -DBUILD_opencv-apps=false -DENABLE_PYLINT=false -DENABLE_CXX11=true '
-DCUDA_SDK_ROOT_DIR="$env:CUDA_PATH" -DCUDA_ARCH_BIN="5.2" -DCUDA_VERBOSE_BUILD=true '
-DWITH_OPENCL=true '
-DCUDA_HOST_COMPILER="C:/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/VC/Tools/MSVC/14.12.25827/bin/Hostx86/x64/cl.exe" '
..\opencv

msbuild.exe OpenCV.sln /verbosity:m /m
#msbuild.exe OpenCV.sln /p:Configuration=Release /verbosity:m /m

Comments

Single quotes ending lines in the scripts should be replaced by backquotes / backticks (I used single quote to match Markdown formatting).

I'm available to investigate.

@mprevot
Copy link
Author

mprevot commented Dec 18, 2017

@alalek is it a Cuda 9.1 nvcc bug ? At beginning of december, I could compile with cuda 9.0, but now not with 9.0 nor 9.1. Reverting to a commit in november didn't help though.

@mprevot
Copy link
Author

mprevot commented Dec 18, 2017

I created a report at Nvidia/Cuda:
https://developer.nvidia.com/nvidia_bug/2037146

@mprevot
Copy link
Author

mprevot commented Dec 20, 2017

Switching from toolset 14.12.25827 to 14.11.25503 allows to build successfully OpenCV HEAD with Cuda 9.1 etc.

@mprevot
Copy link
Author

mprevot commented Dec 23, 2017

If not, the least random is to switch back to VS2015 toolset (included in VS2017) by adding -T v140 instead of -T v141.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants