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

Update SiftGPU to use floorf for floats #1182

Merged
merged 1 commit into from
Mar 19, 2021
Merged

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