Skip to content

Commit

Permalink
Do not put rmm::bad_alloc in quotes
Browse files Browse the repository at this point in the history
Also `Nothing` seems to be an invalid type
  • Loading branch information
miscco committed Nov 7, 2023
1 parent 17021f1 commit e867442
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
12 changes: 3 additions & 9 deletions include/rmm/mr/device/device_memory_resource.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ class device_memory_resource {
*
* The returned pointer will have at minimum 256 byte alignment.
*
* @throws `rmm::bad_alloc` When the requested `bytes` cannot be allocated on
* @throws rmm::bad_alloc When the requested `bytes` cannot be allocated on
* the specified `stream`.
*
* @param bytes The size of the allocation
Expand All @@ -182,8 +182,6 @@ class device_memory_resource {
* it points to must not yet have been deallocated, otherwise behavior is
* undefined.
*
* @throws Nothing.
*
* @param ptr Pointer to be deallocated
* @param bytes The size in bytes of the allocation. This must be equal to the
* value of `bytes` that was passed to the `allocate` call that returned `p`.
Expand All @@ -199,7 +197,7 @@ class device_memory_resource {
*
* The returned pointer will have at minimum 256 byte alignment.
*
* @throws `rmm::bad_alloc` When the requested `bytes` cannot be allocated on
* @throws rmm::bad_alloc When the requested `bytes` cannot be allocated on
* the specified `stream`.
*
* @param bytes The size of the allocation
Expand All @@ -217,7 +215,7 @@ class device_memory_resource {
*
* The returned pointer will have at minimum 256 byte alignment.
*
* @throws `rmm::bad_alloc` When the requested `bytes` cannot be allocated on
* @throws rmm::bad_alloc When the requested `bytes` cannot be allocated on
* the specified `stream`.
*
* @param bytes The size of the allocation
Expand All @@ -237,8 +235,6 @@ class device_memory_resource {
* it points to must not yet have been deallocated, otherwise behavior is
* undefined.
*
* @throws Nothing.
*
* @param ptr Pointer to be deallocated
* @param bytes The size in bytes of the allocation. This must be equal to the
* value of `bytes` that was passed to the `allocate` call that returned `p`.
Expand All @@ -261,8 +257,6 @@ class device_memory_resource {
* it points to must not yet have been deallocated, otherwise behavior is
* undefined.
*
* @throws Nothing.
*
* @param ptr Pointer to be deallocated
* @param bytes The size in bytes of the allocation. This must be equal to the
* value of `bytes` that was passed to the `allocate` call that returned `p`.
Expand Down
6 changes: 2 additions & 4 deletions include/rmm/mr/host/pinned_memory_resource.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class pinned_memory_resource final : public host_memory_resource {
/**
* @brief Pretent to support the allocate_async interface, falling back to stream 0
*
* @throws `rmm::bad_alloc` When the requested `bytes` cannot be allocated on
* @throws rmm::bad_alloc When the requested `bytes` cannot be allocated on
* the specified `stream`.
*
* @param bytes The size of the allocation
Expand All @@ -93,7 +93,7 @@ class pinned_memory_resource final : public host_memory_resource {
/**
* @brief Pretent to support the allocate_async interface, falling back to stream 0
*
* @throws `rmm::bad_alloc` When the requested `bytes` cannot be allocated on
* @throws rmm::bad_alloc When the requested `bytes` cannot be allocated on
* the specified `stream`.
*
* @param bytes The size of the allocation
Expand All @@ -107,8 +107,6 @@ class pinned_memory_resource final : public host_memory_resource {
/**
* @brief Pretent to support the deallocate_async interface, falling back to stream 0
*
* @throws Nothing.
*
* @param ptr Pointer to be deallocated
* @param bytes The size in bytes of the allocation. This must be equal to the
* value of `bytes` that was passed to the `allocate` call that returned `p`.
Expand Down

0 comments on commit e867442

Please sign in to comment.