-
Notifications
You must be signed in to change notification settings - Fork 184
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
Add documentation for any_resource
#2309
Conversation
🟩 CI finished in 12m 43s: Pass: 100%/56 | Total: 2h 34m | Avg: 2m 46s | Max: 12m 06s | Hits: 78%/112
|
Project | |
---|---|
CCCL Infrastructure | |
libcu++ | |
CUB | |
Thrust | |
+/- | CUDA Experimental |
pycuda |
Modifications in project or dependencies?
Project | |
---|---|
CCCL Infrastructure | |
libcu++ | |
CUB | |
Thrust | |
+/- | CUDA Experimental |
+/- | pycuda |
🏃 Runner counts (total jobs: 56)
# | Runner |
---|---|
41 | linux-amd64-cpu16 |
9 | linux-amd64-gpu-v100-latest-1 |
4 | linux-arm64-cpu16 |
2 | windows-amd64-cpu16 |
cudax/include/cuda/experimental/__memory_resource/any_resource.h
Outdated
Show resolved
Hide resolved
cudax/include/cuda/experimental/__memory_resource/any_resource.h
Outdated
Show resolved
Hide resolved
cudax/include/cuda/experimental/__memory_resource/any_resource.h
Outdated
Show resolved
Hide resolved
Co-authored-by: Bernhard Manfred Gruber <[email protected]>
🟩 CI finished in 2h 07m: Pass: 100%/56 | Total: 2h 37m | Avg: 2m 48s | Max: 11m 03s | Hits: 83%/112
|
Project | |
---|---|
CCCL Infrastructure | |
libcu++ | |
CUB | |
Thrust | |
+/- | CUDA Experimental |
pycuda |
Modifications in project or dependencies?
Project | |
---|---|
CCCL Infrastructure | |
libcu++ | |
CUB | |
Thrust | |
+/- | CUDA Experimental |
+/- | pycuda |
🏃 Runner counts (total jobs: 56)
# | Runner |
---|---|
41 | linux-amd64-cpu16 |
9 | linux-amd64-gpu-v100-latest-1 |
4 | linux-arm64-cpu16 |
2 | windows-amd64-cpu16 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a few questions, otherwise looks good. thanks. i will be better about documenting my public additions.
//! ``basic_any_resource`` abstracts the differences between a resource and an async resource away, allowing efficient | ||
//! interoperability between the two. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'm not sure what this is referring to. any_resource
and any_async_resource
are different types with different interfaces. the differences haven 't been abstracted away.
@@ -95,10 +105,12 @@ class basic_any_resource | |||
} | |||
} | |||
|
|||
#ifndef DOXYGEN_SHOULD_SKIP_THIS // Doxygen misparses the below constructor, so dumb it down for it. | |||
//! @brief Conversion from a \c basic_any_resource with the same set of properties but in a different order. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think we should require properties to have a UUID. that way we can have a canonical global ordering of properties. not for this PR obviously.
_LIBCUDACXX_TEMPLATE(_CUDA_VMR::_AllocType _OtherAllocType, class... _OtherProperties) | ||
_LIBCUDACXX_REQUIRES( | ||
_CUDA_VSTD::_IsNotSame<basic_any_resource, basic_any_resource<_OtherAllocType, _OtherProperties...>>::value | ||
(_CUDA_VSTD::_IsNotSame<basic_any_resource, basic_any_resource<_OtherAllocType, _OtherProperties...>>::value) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, much better. thanks.
"_LIBCUDACXX_REQUIRES(x)= ::cuda::std::__enable_if_t<x, int> = 0>", | ||
"_LIBCUDACXX_TEMPLATE(x)=template<x, ", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we really want our docs to have the enable_if
gunk?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The issue is that doxygen does not support requires
so we either have SFINAE or nothing
The docs weren building properly, so add some