ahojnnes · GitHub

With the latest MSVC update the build breaks on Windows with this error:
`error: calling a __host__ function("__floorf") from a __global__ function(...) is not allowed`
This happens due to the use of `floor` reverting to a host function for float arguments, whereas the correct usage of `floorf` is calling a device function.

@ahojnnes

@anmatako

lucasthahn pushed a commit to tne-ai/colmap that referenced this pull request

Aug 17, 2022
With the latest MSVC update the build breaks on Windows with this error:
`error: calling a __host__ function("__floorf") from a __global__ function(...) is not allowed`
This happens due to the use of `floor` reverting to a host function for float arguments, whereas the correct usage of `floorf` is calling a device function.

Read the original on github.com ↗