Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@anmatako
Copy link
Contributor

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.

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 ahojnnes merged commit 9f3a75a into colmap:dev Mar 19, 2021
@anmatako anmatako deleted the patch-1 branch March 19, 2021 15:35
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.
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

Successfully merging this pull request may close these issues.

2 participants