You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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__
The text was updated successfully, but these errors were encountered:
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 destroystd::future
s. As a result,std::future::~future
is inferred to be__host__ __device__
. The problem is that implementations ofstd::future
call functions like the above which are not inferred to be__host__ __device__
The text was updated successfully, but these errors were encountered: