3.6.0 update (#2005)
* 3.6.0 update * doc and swap stuff --------- Co-authored-by: yuzhai <yuzhai@nvidia.com> Co-authored-by: Haicheng Wu <haichengw@nvidia.com>
This commit is contained in:
co-authored by
yuzhai
Haicheng Wu
parent
e1cd8c7866
commit
3d261a5974
@@ -147,6 +147,14 @@ recast_ptr(swizzle_ptr<SwizzleFn,P> const& ptr) {
|
||||
return make_swizzle_ptr(recast_ptr<NewT>(ptr.get()), SwizzleFn{});
|
||||
}
|
||||
|
||||
// The statically-known alignment of a swizzle pointer is the alignment of the swizzle function converted to bits
|
||||
template <class SwizzleFn, class P>
|
||||
CUTE_HOST_DEVICE constexpr
|
||||
auto
|
||||
max_alignment(swizzle_ptr<SwizzleFn,P> const&) {
|
||||
return Int<8>{} * max_alignment(SwizzleFn{});
|
||||
}
|
||||
|
||||
//
|
||||
// Display utilities
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user