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

Nvcc emits warnings regarding standard library functions calling __host__-only functions #437

Open
jaredhoberock opened this issue Feb 23, 2018 · 0 comments
Labels

Comments

@jaredhoberock
Copy link
Collaborator

For example:

test.cu(12): warning: calling a __host__ function("std::__shared_count<( ::__gnu_cxx::_Lock_policy)2> ::~__shared_count") from a __host__ __device__ function("std::future<void> ::~future") is not allowed

std::future::~future happens to be a compiler-generated function and therefore its execution space specifiers are inferred by the compiler. Some of Agency's templated __host__ __device__ functions may create and destroy std::futures. As a result, std::future::~future is inferred to be __host__ __device__. The problem is that implementations of std::future call functions like the above which are not inferred to be __host__ __device__

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

No branches or pull requests

1 participant