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
cudax::*_memory_resource should be a constexpr/constinst global object, not a type. I want to write foo(cudax::device_memory_resource) not foo(cudax::device_memory_resource{}). This is the common case, so we should optimize for it; if you need flags, you use the type name (which could be cudax::*_memory_resource_type, cudax::*_memory_resource_t, or something like that).
In Thrust, I believe we made these objects not types.
The text was updated successfully, but these errors were encountered:
We considered adding global objects for those types, but decided against that because that has much stronger implications on stability of a type. Changing anything in the default object might break user code in an unclear and hard to debug way, which is why we opted out of providing global objects.
cudax::*_memory_resource
should be aconstexpr
/constinst
global object, not a type. I want to writefoo(cudax::device_memory_resource)
notfoo(cudax::device_memory_resource{})
. This is the common case, so we should optimize for it; if you need flags, you use the type name (which could becudax::*_memory_resource_type
,cudax::*_memory_resource_t
, or something like that).In Thrust, I believe we made these objects not types.
The text was updated successfully, but these errors were encountered: