Skip to content

Commit

Permalink
Merge pull request #262 from jrhemstad/fea-ext-move-device-resource-f…
Browse files Browse the repository at this point in the history
…older

Moved device memory resource files to mr/device folder
  • Loading branch information
jrhemstad authored Feb 3, 2020
2 parents 47cb6b8 + 640c379 commit c3acb47
Show file tree
Hide file tree
Showing 20 changed files with 44 additions and 43 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- PR #252 Add `__sizeof__` method to `DeviceBuffer`
- PR #258 Define pickling behavior for `DeviceBuffer`
- PR #261 Add `__bytes__` method to `DeviceBuffer`
- PR #262 Moved device memory resource files to `mr/device` directory
- PR #266 Drop `rmm.auto_device`

## Improvements
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ add_library(rmm SHARED
src/device_buffer.cpp
src/memory_manager.cpp
thirdparty/cnmem/src/cnmem.cpp
src/mr/default_memory_resource.cpp)
src/mr/device/default_memory_resource.cpp)

# override rpath for rmm
SET_TARGET_PROPERTIES(rmm PROPERTIES BUILD_RPATH "\$ORIGIN")
Expand Down
2 changes: 1 addition & 1 deletion include/rmm/detail/memory_manager.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#include <set>
#include <mutex>

#include <rmm/mr/device_memory_resource.hpp>
#include <rmm/mr/device/device_memory_resource.hpp>

#include <rmm/rmm_api.h>
#include <rmm/detail/cnmem.h>
Expand Down
4 changes: 2 additions & 2 deletions include/rmm/device_buffer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
*/
#pragma once

#include <rmm/mr/default_memory_resource.hpp>
#include <rmm/mr/device_memory_resource.hpp>
#include <rmm/mr/device/default_memory_resource.hpp>
#include <rmm/mr/device/device_memory_resource.hpp>

#include <cuda_runtime_api.h>
#include <cassert>
Expand Down
4 changes: 2 additions & 2 deletions include/rmm/device_scalar.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
#pragma once

#include <rmm/device_buffer.hpp>
#include <rmm/mr/default_memory_resource.hpp>
#include <rmm/mr/device_memory_resource.hpp>
#include <rmm/mr/device/default_memory_resource.hpp>
#include <rmm/mr/device/device_memory_resource.hpp>

namespace rmm {

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion include/rmm/rmm.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#define MEMORY_HPP
#include "rmm/rmm_api.h"
#include "rmm/detail/memory_manager.hpp"
#include "rmm/mr/default_memory_resource.hpp"
#include "rmm/mr/device/default_memory_resource.hpp"

/** ---------------------------------------------------------------------------*
* @brief Macro wrapper to check for error in RMM API calls.
Expand Down
10 changes: 5 additions & 5 deletions src/memory_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
*/

#include <rmm/detail/memory_manager.hpp>
#include <rmm/mr/cnmem_managed_memory_resource.hpp>
#include <rmm/mr/cnmem_memory_resource.hpp>
#include <rmm/mr/cuda_memory_resource.hpp>
#include <rmm/mr/default_memory_resource.hpp>
#include <rmm/mr/managed_memory_resource.hpp>
#include <rmm/mr/device/cnmem_managed_memory_resource.hpp>
#include <rmm/mr/device/cnmem_memory_resource.hpp>
#include <rmm/mr/device/cuda_memory_resource.hpp>
#include <rmm/mr/device/default_memory_resource.hpp>
#include <rmm/mr/device/managed_memory_resource.hpp>

namespace rmm {
/** -------------------------------------------------------------------------*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <rmm/mr/cnmem_managed_memory_resource.hpp>
#include <rmm/mr/cnmem_memory_resource.hpp>
#include <rmm/mr/cuda_memory_resource.hpp>
#include <rmm/mr/default_memory_resource.hpp>
#include <rmm/mr/device_memory_resource.hpp>
#include <rmm/mr/managed_memory_resource.hpp>
#include <rmm/mr/device/cnmem_managed_memory_resource.hpp>
#include <rmm/mr/device/cnmem_memory_resource.hpp>
#include <rmm/mr/device/cuda_memory_resource.hpp>
#include <rmm/mr/device/default_memory_resource.hpp>
#include <rmm/mr/device/device_memory_resource.hpp>
#include <rmm/mr/device/managed_memory_resource.hpp>

#include <atomic>

Expand Down
8 changes: 4 additions & 4 deletions src/rmm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@

#include "rmm/rmm.h"
#include "rmm/detail/memory_manager.hpp"
#include "rmm/mr/cnmem_memory_resource.hpp"
#include "rmm/mr/cnmem_managed_memory_resource.hpp"
#include "rmm/mr/managed_memory_resource.hpp"
#include "rmm/mr/cuda_memory_resource.hpp"
#include "rmm/mr/device/cnmem_memory_resource.hpp"
#include "rmm/mr/device/cnmem_managed_memory_resource.hpp"
#include "rmm/mr/device/managed_memory_resource.hpp"
#include "rmm/mr/device/cuda_memory_resource.hpp"



Expand Down
12 changes: 6 additions & 6 deletions tests/device_buffer_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
#include "gtest/gtest.h"

#include <rmm/device_buffer.hpp>
#include <rmm/mr/cnmem_memory_resource.hpp>
#include <rmm/mr/cnmem_managed_memory_resource.hpp>
#include <rmm/mr/cuda_memory_resource.hpp>
#include <rmm/mr/default_memory_resource.hpp>
#include <rmm/mr/device_memory_resource.hpp>
#include <rmm/mr/managed_memory_resource.hpp>
#include <rmm/mr/device/cnmem_memory_resource.hpp>
#include <rmm/mr/device/cnmem_managed_memory_resource.hpp>
#include <rmm/mr/device/cuda_memory_resource.hpp>
#include <rmm/mr/device/default_memory_resource.hpp>
#include <rmm/mr/device/device_memory_resource.hpp>
#include <rmm/mr/device/managed_memory_resource.hpp>

#include <cuda_runtime_api.h>
#include <cstddef>
Expand Down
4 changes: 2 additions & 2 deletions tests/device_scalar_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
#include "gtest/gtest.h"

#include <rmm/device_scalar.hpp>
#include <rmm/mr/default_memory_resource.hpp>
#include <rmm/mr/device_memory_resource.hpp>
#include <rmm/mr/device/default_memory_resource.hpp>
#include <rmm/mr/device/device_memory_resource.hpp>

#include <cuda_runtime_api.h>
#include <chrono>
Expand Down
12 changes: 6 additions & 6 deletions tests/mr/mr_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@

#include "gtest/gtest.h"

#include <rmm/mr/cnmem_memory_resource.hpp>
#include <rmm/mr/cnmem_managed_memory_resource.hpp>
#include <rmm/mr/cuda_memory_resource.hpp>
#include <rmm/mr/default_memory_resource.hpp>
#include <rmm/mr/device_memory_resource.hpp>
#include <rmm/mr/managed_memory_resource.hpp>
#include <rmm/mr/device/cnmem_memory_resource.hpp>
#include <rmm/mr/device/cnmem_managed_memory_resource.hpp>
#include <rmm/mr/device/cuda_memory_resource.hpp>
#include <rmm/mr/device/default_memory_resource.hpp>
#include <rmm/mr/device/device_memory_resource.hpp>
#include <rmm/mr/device/managed_memory_resource.hpp>

#include <cuda_runtime_api.h>
#include <cstddef>
Expand Down
14 changes: 7 additions & 7 deletions tests/mr/thrust_allocator_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
* limitations under the License.
*/

#include <rmm/mr/cnmem_memory_resource.hpp>
#include <rmm/mr/cnmem_managed_memory_resource.hpp>
#include <rmm/mr/cuda_memory_resource.hpp>
#include <rmm/mr/default_memory_resource.hpp>
#include <rmm/mr/device_memory_resource.hpp>
#include <rmm/mr/managed_memory_resource.hpp>
#include <rmm/mr/thrust_allocator_adaptor.hpp>
#include <rmm/mr/device/cnmem_memory_resource.hpp>
#include <rmm/mr/device/cnmem_managed_memory_resource.hpp>
#include <rmm/mr/device/cuda_memory_resource.hpp>
#include <rmm/mr/device/default_memory_resource.hpp>
#include <rmm/mr/device/device_memory_resource.hpp>
#include <rmm/mr/device/managed_memory_resource.hpp>
#include <rmm/mr/device/thrust_allocator_adaptor.hpp>

#include <gtest/gtest.h>

Expand Down

0 comments on commit c3acb47

Please sign in to comment.