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

kEps is undefined in device code in file (generalized_projection_cuda.cu) 61 #4

Closed
IzzakQ opened this issue Sep 9, 2022 · 2 comments

Comments

@IzzakQ
Copy link

IzzakQ commented Sep 9, 2022

Thank you for your project.
I'am Aerospace Engeneer and new in GitHub. I've a problem in building a project on VS2019.
When I run the build, the following error appears in the file generalized_projection_cuda.cu . There is a problem with the "keps" variable.

How to solve this problem?

Settings:
Windows 10
CUDA 11.2
Pytorch 1.12.1
identifier "geomlib::_NV_ANON_NAMESPACE::kEps" is undefined in device code	C:\Users\1\Downloads\interactive-hex-meshing-main\interactive-hex-meshing-main\out\build\x64-Debug\interactive-hex-meshing-main	C:\Users\1\Downloads\interactive-hex-meshing-main\interactive-hex-meshing-main\geomlib\geomlib\generalized_projection_cuda.cu	61	

  [197/260] Linking CXX static library vkoo\vkoo.lib
  [198/260] Building NVCC (Device) object geomlib/geomlib/CMakeFiles/geomlib.dir/geomlib_generated_generalized_projection_cuda.cu.obj
  FAILED: geomlib/geomlib/CMakeFiles/geomlib.dir/geomlib_generated_generalized_projection_cuda.cu.obj 
  cmd.exe /C "cd /D C:\Users\1\Downloads\interactive-hex-meshing-main\interactive-hex-meshing-main\out\build\x64-
  Debug\geomlib\geomlib\CMakeFiles\geomlib.dir && "C:\Program Files (x86)\Microsoft Visual 
  Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -E make_directory
  C:/Users/1/Downloads/interactive-hex-meshing-main/interactive-hex-meshing-main/out/build/x64-
  Debug/geomlib/geomlib/CMakeFiles/geomlib.dir//. && "C:\Program Files (x86)\Microsoft Visual 
  Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -D verbose:BOOL=OFF -D 
  build_configuration:STRING=Debug -D generated_file:STRING=C:/Users/1/Downloads/interactive-hex-meshing-main/interactive-
  hex-meshing-main/out/build/x64-
  Debug/geomlib/geomlib/CMakeFiles/geomlib.dir//./geomlib_generated_generalized_projection_cuda.cu.obj -D 
  generated_cubin_file:STRING=C:/Users/1/Downloads/interactive-hex-meshing-main/interactive-hex-meshing-main/out/build/x64-
  Debug/geomlib/geomlib/CMakeFiles/geomlib.dir//./geomlib_generated_generalized_projection_cuda.cu.obj.cubin.txt -P 
  C:/Users/1/Downloads/interactive-hex-meshing-main/interactive-hex-meshing-main/out/build/x64-
  Debug/geomlib/geomlib/CMakeFiles/geomlib.dir//geomlib_generated_generalized_projection_cuda.cu.obj.Debug.cmake"
  generalized_projection_cuda.cu
@lingxiaoli94
Copy link
Owner

Hi, thanks for your interest. The kEps is defined at

, in the very same file. I'm not sure why it is not picked up by your compiler. Could you try if any of the following would work:

  • Put const float kEps = 1e-8; outside the namespaces.
  • Use macro #define kEps 1e-8 instead of const float kEps = 1e-8;

@IzzakQ
Copy link
Author

IzzakQ commented Sep 11, 2022

@lingxiaoli94 thank you for the advice, they partially helped.
But the build still happens with errors, so what can you advise in this case? I was thinking of running your code on Ubuntu 20.04 ( as a last resort ) so that there would be no errors.

What can I try on Windows?

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

No branches or pull requests

2 participants