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

Fix host Function Call Issue in _vectorize.hpp #1355

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

1neskk
Copy link

@1neskk 1neskk commented Mar 24, 2025

This PR addresses the warnings generated by calls to a host function from a host device context, specifically within the glm::TMin<float> and glm::TMax<float> functors. The solution involves updating the definitions in glm/detail/func_common.inl to ensure the correct function qualifiers are applied.

The following warnings were addressed:

  • glm/detail/_vectorize.hpp(104): warning #20011-D: calling a __host__ function ("glm::TMin<float>::operator()(const float &, const float &)") from a __host__ __device__ function ("glm::detail::functor2<glm::vec,4,float,glm::qualifier>::call<glm::TMin<float>>") is not allowed
  • A similar warning for glm::TMax<float> was also addressed.

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.

1 participant