Skip to content

Commit

Permalink
Docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrhemstad committed Jun 26, 2019
1 parent e279ba3 commit 17dbfa8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions include/rmm/mr/default_memory_resource.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ namespace mr {
* is not supplied. The initial default memory resource is a
* `cuda_memory_resource`.
*
* The default memory resource is used for all temporary memory allocation.
*
* This function is thread-safe.
*
* @return device_memory_resource* Pointer to the current default memory
Expand Down
1 change: 1 addition & 0 deletions src/mr/default_memory_resource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ device_memory_resource* initial_resource() {
return &resource;
}

// Use an atomic to guarantee thread safety
std::atomic<device_memory_resource*>& get_default() {
static std::atomic<device_memory_resource*> res{initial_resource()};
return res;
Expand Down

0 comments on commit 17dbfa8

Please sign in to comment.