Open MatthiasPopp opened 3 years ago
I got the same problem. How to fix it? Try to Install VS2019 16.8.6 can fix it?
@jojinshallar Yes. As I mentioned above, the issue does not appear in earlier versions. 16.8.6 worked fine for me.
I got the same. I try to Install VS19 16.8, but how to Install it? There only VS2019 16.9 in the Web.
@HYC986
Issue Summary
When using MSVS or MSVC aka. Buildtools in version 16.9, cuda failes to compile
resizeAndMergeBase.cu
If you have this issue, install a previous Version. MSVC 16.8.6 is working as expected. Use the visual studio releases site to download previous Versions of MSVS 2019.
The given link was in German and not helpful. I will change that. But you can easily find it using appropriate search terms in a search engine of your choice to find it here
I got the same problem with the new version of Visual Studio 2019. It is possible to download older versions here: https://docs.microsoft.com/en-us/visualstudio/releases/2019/history where you can download the Visual Studio Professional Installer, and then go to the "Available" tab inside the installer to install the Community version.
A possible workaround, based on what is suggested at the following link https://devtalk.blender.org/t/cuda-compile-error-windows-10/17886/5
In the files "cuda.hu" and "resizeAndMergeBase.cu", substitute floor with floorf. I was able to compile the solution.
In the files "cuda.hu" and "resizeAndMergeBase.cu", substitute floor with floorf. I was able to compile the solution.
I can confirm this will fix the compilation process for Visual Studio 16.9.2 and CUDA 11.1.
A possible workaround, based on what is suggested at the following link https://devtalk.blender.org/t/cuda-compile-error-windows-10/17886/5
In the files "cuda.hu" and "resizeAndMergeBase.cu", substitute floor with floorf. I was able to compile the solution.
Thanks!It works for me.
Anyway , it seems no matter with Version of Visual Studio ,because update VS to 16.9.2 still has the problem .
In the files "cuda.hu" and "resizeAndMergeBase.cu", substitute floor with floorf. I was able to compile the solution.
I can confirm this will fix the compilation process for Visual Studio 16.9.2 and CUDA 11.1.
It is also work for VS 16.9.2 and CUDA 11.2
A possible workaround, based on what is suggested at the following link https://devtalk.blender.org/t/cuda-compile-error-windows-10/17886/5
In the files "cuda.hu" and "resizeAndMergeBase.cu", substitute floor with floorf. I was able to compile the solution.
Thanks, works for 16.9.2 and CUDA11.2
Issue has been resolved upstream: https://github.com/microsoft/STL/pull/1886
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Issue Summary
When using MSVS or MSVC aka. Buildtools in version 16.9, cuda failes to compile
resizeAndMergeBase.cu
If you have this issue, install a previous Version. MSVC 16.8.6 is working as expected. Use the visual studio releases site to download previous Versions of MSVS 2019.
This is not an open issue, but rather for those searching for an answer for their compile issue with openpose in particular. I hope you find it usefull enough for it to have a raison d'être here.
Executed Command (if any)
msbuild -m OpenPose.sln
or alternatively compile via Visual Studio IDE
OpenPose Output (if any)
Issue occures during compilation.
Errors (if any)
openpose/net/resizeAndMergeBase.cu(142): error : calling a __host__ function("__floorf") from a __global__ function("op::resize8TimesKernel<float> ") is not allowed
openpose/net/resizeAndMergeBase.cu(142): error : identifier "__floorf" is undefined in device code
Type of Issue
Your System Configuration
Click this see the terminal output. (Pastebin "SMART" filter did not allow to use Pasebin instead)
OpenPose version: 1.7.0
General configuration:
Non-default settings:
3rd-party software:
If GPU mode issue: