Cuda error with OpenPose / Nvidia 2080 Ti / CUDA 10 on Windows 10 pro (error == cudaSuccess (8 vs. 0) invalid device function)
OpenPoseDemo.exe --logging_level 0 --disable_multi_thread
Starting OpenPose demo...
{{{ full output that was in here is available at https://pastebin.com/ATu7amDD }}}
F1230 19:44:08.215404 15224 pooling_layer.cu:212] Check failed: error == cudaSuccess (8 vs. 0) invalid device function
* Check failure stack trace: *
Recompiled OpenPose with Cuda 10 on Windows 10 pro works well with 1080 ti, but with the 2080 ti it fails to open a window and the following message appears:
F1230 19:44:08.215404 15224 pooling_layer.cu:212] Check failed: error == cudaSuccess (8 vs. 0) invalid device function
You might select multiple topics, delete the rest:
Some additional things tried:
I am in the process of trying to install OpenPose on VS2017 with CUDA 10 (note that we officially only support VS2015 for CUDA 8, so 20XX graphics cards would not be compatible there).
Hopefully this should solve the issue for the newer GPUs. But it will take me some time (hopefully between 1-2 weeks). I will keep you updated here.
Note: I deleted your comment from #816 given that the reason is different.
Interesting question, I'm trying to make it work as well on Ubuntu with two RTX 2070. Let's keep ourselves updated
Ubuntu should run with no issue. The problem is that I have to compile Caffe for CUDA 10 on Windows... and Caffe does not have any support in there. I will fight with it this weekend.
Any progress with compiling Caffe for CUDA 10 on Windows?
I could not compile Caffe following their Windows instructions (lots of errors which I need to figure out how to solve)... If somebody is able to compile CUDA version of Caffe for VS 2017, please forward with me the instructions. Otherwise, I will try more deeply whenever I have a change, but right now I wont be able in the following 1-2 weeks at least.
Nvidia have their own branch of Caffe : NVCaffe
The latest version is based on Cuda 10.
https://docs.nvidia.com/deeplearning/dgx/caffe-release-notes/rel_18.09.html
"xlert" has apparently been able to compile Caffe with CUDA 10:
https://github.com/BVLC/caffe/issues/6666
The problem is Windows. xlert has most probably done it on Ubuntu, where it is as simple as in previous CUDA versions.
For the NVCaffe, could you forward me where I can download it? I could only find doc but not the actual download link.
Is there is any new about the RTX support ? In our lab, we just received our newer computer with RTX card, and we would like to use it with OpenPose
I am trying to get it to work with my new RTX 2070. Any updates?
I am having the same problem with the new RTX2080. Any updates?
So RTX 2080 should not be a problem on Ubuntu, right?
I was having issues with 2070 on Ubuntu, so I presume the same would be with the 2080. It seems that caffe isn't compatible with RTX yet, but if you can figure out how to replace caffe with NVCaffe, it may work.
I've discussed with deep learning team at Nvidia.
They definitely recommend to upgrade to NVCaffe as Nvidia is supporting and maintaining the compatibility between their Caffe implementation (as well as other frameworks) and their hardware:
https://docs.nvidia.com/deeplearning/dgx/caffe-release-notes/overview_relnot.html
Some additional info on the release notes:
https://docs.nvidia.com/deeplearning/dgx/caffe-release-notes/index.html
However, their still seems to be some issue to compile NVCaffe on Windows.
@nchauvin1 Do you know how to install OpenPose using NVCaffe instead of Caffe? Thanks!
Otherwise, there are several branches of Caffe for Windows:
https://github.com/BVLC/caffe/tree/windows
https://github.com/happynear/caffe-windows
https://github.com/Microsoft/caffe
https://github.com/willyd/caffe
But none of them seems to support CUDA 10 yet.
@nchauvin1 do you know how to tell CMake to use NVCaffe instead of Caffe?
2070 and 2080 (or any graphic card) is no issue in Ubuntu. The problem is Windows. As @nchauvin1 points out, there are many Windows branches, but none supports CUDA 10 (so no 20XX cards compatible). If anybody finds a Windows Caffe branch that supports CUDA 10, please let me know!
@JakeMalis So far, I can only find NVCaffe for Ubuntu, I have not found successful instructions for Windows either.
@gineshidalgo99 I have both Ubuntu and Windows, so if you could send me Ubuntu instructions that would be awesome!
@JakeMalis There is no particular instructions for 20XX cards. As long as you have CUDA >= 10, OpenPose will simply work on Ubuntu with 20XX cards (I tried myself a couple days ago in a new one we just got). Use the latest GitHub code but that's it.
2070 and 2080 (or any graphic card) is no issue in Ubuntu. The problem is Windows. As @nchauvin1 points out, there are many Windows branches, but none supports CUDA 10 (so no 20XX cards compatible). If anybody finds a Windows Caffe branch that supports CUDA 10, please let me know!
@JakeMalis So far, I can only find NVCaffe for Ubuntu, I have not found successful instructions for Windows either.
Thank you so much! I need to buy a new laptop in this week, so now I'll look for an RTX2080/RTX2070 laptop instead of GTX 1070.
@gineshidalgo99 I was having lots of issues with it. Did you use NVCaffe?
@gineshidalgo99 I was getting lots of errors when trying to build OpenPose
Default OpenPose, as it is today and following the , works on a newly formatted Ubuntu 16 machine with any CUDA version >= 8. As mentioned in the documentation, we do not (officially) support Ubuntu 18, nor CUDA >= 9 on Windows 10, nor NVCaffe. I have no clue how hard it would be to make them work on those.
@gineshidalgo99 if my machine is Ubuntu 18, would that be why it is not working?
@JakeMalis I have been able to install OpenPose on Ubuntu 18. From now on, the documentation includes a new section about how to install it on Ubuntu 18 (I tried CUDA 10):
https://github.com/CMU-Perceptual-Computing-Lab/openpose/blob/master/doc/installation.md
Updating the previous message:
2070 and 2080 (or any 7XX, 8XX, 9XX, 10XX, 20XX, V100, Titan V, etc.) is no issue in Ubuntu. The problem is Windows. As @nchauvin1 points out, there are many Windows branches, but none supports CUDA 10 (so no 20XX cards compatible nor V100 nor Titan V). If anybody finds a Windows Caffe branch that supports CUDA 10, please let me know!
We do not (officially) support CUDA >= 9 (for Windows) nor NVCaffe (for any OS). I have no clue how hard it would be to make them work on those. So far I was not able to install Caffe with CUDA 10 on Windows.
@gineshidalgo99 thank you so much for added that to the documentation! When I get home tonight I will definitely try to get it working. I'll let you know how it goes.
@gineshidalgo99 when I try to build using make -j nproc but it fails with the following output:
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
CUDA_cublas_device_LIBRARY (ADVANCED)
linked by target "caffe" in directory /home/jakebmalis/Documents/openpose/3rdparty/caffe/src/caffe
-- Configuring incomplete, errors occurred!
See also "/home/jakebmalis/Documents/openpose/build/caffe/src/openpose_lib-build/CMakeFiles/CMakeOutput.log".
See also "/home/jakebmalis/Documents/openpose/build/caffe/src/openpose_lib-build/CMakeFiles/CMakeError.log".
CMakeFiles/openpose_lib.dir/build.make:105: recipe for target 'caffe/src/openpose_lib-stamp/openpose_lib-configure' failed
make[2]: *** [caffe/src/openpose_lib-stamp/openpose_lib-configure] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/openpose_lib.dir/all' failed
make[1]: *** [CMakeFiles/openpose_lib.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
Please, in order for me to help you better, open a new post where you include all your software/hw configuration as the GitHub issue template specifies.
Let's leave this issue for compatibility between CUDA 10 and Caffe on Windows.
@gineshidalgo99 I created a new issue with all the info per the template. Thanks!
In this website an explanation about how to make Caffe work with CUDA 9 is documented. Maybe thats transferable to CUDA 10, too.
https://tharindumathew.com/2018/04/13/using-caffe-on-windows-with-cuda-9-0-for-vs-2013-2015-and-2017
VS2017 and CUDA 10 support added in the latest commit (for Windows)! Please, let me know if it finally works on your machines. I will consider this issue closed then, but please post if you find any errors.
VERY IMPORTANT: Manually remove OpenPose and re-clone it again (to remove VS 2015 files)
I still cannot build on Windows 10 with VS2017 and Cuda 10.
Visual studio says it cant find openpose.lib, it does not say why it wont build it.
The only other error is
{code}>CMake Error at openpose_generated_renderFace.cu.obj.Release.cmake:219 (message):
1> Error generating
1> D:/code/openpose/build/src/openpose/CMakeFiles/openpose.dir/face/Release/openpose_generated_renderFace.cu.obj
1>
1>
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(209,5): error MSB6006: "cmd.exe" exited with code 1.{code}
Following up on last comment. (Which is mine under different name)
I tried running the portable demo with cuda 8, 9, and 10 and got the same cuda error as the others using an rtx 2080.
I also tried building with 8 and 10 and got the cmake error listed above.
Following up on last comment. (Which is mine under different name)
I tried running the portable demo with cuda 8, 9, and 10 and got the same cuda error as the others using an rtx 2080.
I also tried building with 8 and 10 and got the cmake error listed above.
The portable demo won't run on RTX card even though it runs on GTX 10xx with CUDA 10.
You have to clone the master repo and build your own openpose for your RTX card. It's working fine on my RTX 2080 Max-Q laptop.

thanks @rathaROG
I was not able to build (brand new win10, vs2017, cuda10) because of the cmake error I posted in this thread.
CMake Error at openpose_generated_renderFace.cu.obj.Release.cmake:219 (message):
1> Error generating
1> D:/code/openpose/build/src/openpose/CMakeFiles/openpose.dir/face/Release/openpose_generated_renderFace.cu.obj
Ill try again
thanks @rathaROG
I was not able to build (brand new win10, vs2017, cuda10) because of the cmake error I posted in this thread.CMake Error at openpose_generated_renderFace.cu.obj.Release.cmake:219 (message):
1> Error generating
1> D:/code/openpose/build/src/openpose/CMakeFiles/openpose.dir/face/Release/openpose_generated_renderFace.cu.objIll try again
I tried to build again based on the latest master repo, and it was successfully built without any error. Please take a look at my system and my procedure below. Good luck!
The details of my system:
Procedure:
CUDA_SDK_ROOT_DIR, so manually set it! Mine is C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.0 [screenshot]OpenPoseDemo [screenshot]openpose.lib in openpose\build\src\openpose\Release and openpose.dll in openpose\build\x64\Release .hi @chrisrogers3d ,
i had the same problem. I'm not sure totally to understand this issue but to solve it, I changed the default value in cmake for CUDA_HOST_COMPILER by "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64" (path for a default community vs2017). I found this path in cuda example for the -ccbin parameter in nvcc.
if it can help you...
Thanks Everyone!
I tried again and got it to work! Setting x64 in Cmake might need to be in the directions.
Building the 3d viewer did not work.
Win10 twin rtx2080 cuda 10.1 cudnn 7.5 vs2017
Hey everyone, hopefully someone is still active here.
We're trying to get openpose on an RTX2070 working as well and I tried compiling it myself as well but after the first few errors and endless googles I gave up. Is it possible to share your compiled binaries?
Most helpful comment
I've discussed with deep learning team at Nvidia.
They definitely recommend to upgrade to NVCaffe as Nvidia is supporting and maintaining the compatibility between their Caffe implementation (as well as other frameworks) and their hardware:
https://docs.nvidia.com/deeplearning/dgx/caffe-release-notes/overview_relnot.html
Some additional info on the release notes:
https://docs.nvidia.com/deeplearning/dgx/caffe-release-notes/index.html
However, their still seems to be some issue to compile NVCaffe on Windows.