Skip to content

Commit fbfa92d

Browse files
authored
Merge pull request #333 from rapidsai/branch-0.13
[gpuCI] Auto-merge branch-0.13 to branch-0.14 [skip ci]
2 parents 8c6ce1e + bd50b60 commit fbfa92d

File tree

6 files changed

+19
-17
lines changed

6 files changed

+19
-17
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828
- PR #303 Added replay benchmark.
2929
- PR #319 Add `thread_safe_resource_adaptor` class.
3030
- PR #314 New suballocator memory_resources.
31+
- PR #330 Fixed incorrect name of `stream_free_blocks_` debug symbol.
32+
- PR #331 Move to C++14 and deprecate legacy APIs.
3133

3234
## Improvements
3335

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ endif()
3535
###################################################################################################
3636
# - compiler options ------------------------------------------------------------------------------
3737

38-
set(CMAKE_CXX_STANDARD 11)
38+
set(CMAKE_CXX_STANDARD 14)
3939
set(CMAKE_CXX_STANDARD_REQUIRED ON)
4040
set(CMAKE_C_COMPILER $ENV{CC})
4141
set(CMAKE_CXX_COMPILER $ENV{CXX})
4242

4343
if(CMAKE_COMPILER_IS_GNUCXX)
44-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror")
44+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror -Wno-error=deprecated-declarations")
4545

4646
option(CMAKE_CXX11_ABI "Enable the GLIBCXX11 ABI" ON)
4747
if(CMAKE_CXX11_ABI)

include/rmm/mr/device/pool_memory_resource.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ class pool_memory_resource final : public device_memory_resource {
313313
for (auto b : allocated_blocks_) { b.print(); }
314314

315315
std::cout << "sync free blocks: ";
316-
for (auto s : stream_blocks_) {
316+
for (auto s : stream_free_blocks_) {
317317
std::cout << "stream " << s.first << " ";
318318
s.second.print();
319319
}

include/rmm/rmm.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ class LogIt {
104104
* requested size, or RMM_CUDA_ERROR on any other CUDA error.
105105
*/
106106
template <typename T>
107-
inline rmmError_t alloc(T** ptr, size_t size, cudaStream_t stream,
107+
[[deprecated]] inline rmmError_t alloc(T** ptr, size_t size, cudaStream_t stream,
108108
const char* file, unsigned int line) {
109109
if (!rmmIsInitialized(nullptr)) {
110110
if (ptr) *ptr = nullptr;
@@ -189,7 +189,7 @@ inline rmmError_t realloc(T** ptr, size_t new_size, cudaStream_t stream,
189189
* has not been called,or RMM_ERROR_CUDA_ERROR on any CUDA
190190
* error.
191191
*/
192-
inline rmmError_t free(void* ptr, cudaStream_t stream, const char* file,
192+
[[deprecated]] inline rmmError_t free(void* ptr, cudaStream_t stream, const char* file,
193193
unsigned int line) {
194194
if (!rmmIsInitialized(nullptr)) return RMM_ERROR_NOT_INITIALIZED;
195195

include/rmm/rmm_api.h

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ struct rmmOptions_t {
8787
* used if it is null.
8888
* @return rmmError_t RMM_SUCCESS or RMM_ERROR_CUDA_ERROR on any CUDA error.
8989
* --------------------------------------------------------------------------**/
90-
rmmError_t rmmInitialize(rmmOptions_t *options);
90+
[[deprecated]] rmmError_t rmmInitialize(rmmOptions_t *options);
9191

9292
/** ---------------------------------------------------------------------------*
9393
* @brief Shutdown memory manager.
@@ -99,7 +99,7 @@ rmmError_t rmmInitialize(rmmOptions_t *options);
9999
* @return rmmError_t RMM_SUCCESS, or RMM_NOT_INITIALIZED if rmmInitialize() has
100100
* not been called, or RMM_ERROR_CUDA_ERROR on any CUDA error.
101101
* ---------------------------------------------------------------------------**/
102-
rmmError_t rmmFinalize();
102+
[[deprecated]] rmmError_t rmmFinalize();
103103

104104
/** --------------------------------------------------------------------------*
105105
* @brief Query the initialization state of RMM.
@@ -110,15 +110,15 @@ rmmError_t rmmFinalize();
110110
* @return true if rmmInitialize has been called successfully.
111111
* @return false if rmmInitialize has not been called successfully.
112112
* --------------------------------------------------------------------------**/
113-
bool rmmIsInitialized(rmmOptions_t *options);
113+
[[deprecated]] bool rmmIsInitialized(rmmOptions_t *options);
114114

115115
/** ---------------------------------------------------------------------------*
116116
* @brief Stringify RMM error code.
117117
*
118118
* @param errcode The error returned by an RMM function
119119
* @return const char* The input error code in string form
120120
* --------------------------------------------------------------------------**/
121-
const char * rmmGetErrorString(rmmError_t errcode);
121+
[[deprecated]] const char * rmmGetErrorString(rmmError_t errcode);
122122

123123
/** ---------------------------------------------------------------------------*
124124
* @brief Allocate memory and return a pointer to device memory.
@@ -137,7 +137,7 @@ const char * rmmGetErrorString(rmmError_t errcode);
137137
* null, RMM_ERROR_OUT_OF_MEMORY if unable to allocate the
138138
* requested size, or RMM_CUDA_ERROR on any other CUDA error.
139139
* --------------------------------------------------------------------------**/
140-
rmmError_t rmmAlloc(void **ptr, size_t size, cudaStream_t stream,
140+
[[deprecated]] rmmError_t rmmAlloc(void **ptr, size_t size, cudaStream_t stream,
141141
const char* file, unsigned int line);
142142

143143
/** ---------------------------------------------------------------------------*
@@ -173,7 +173,7 @@ rmmError_t rmmAlloc(void **ptr, size_t size, cudaStream_t stream,
173173
* has not been called,or RMM_ERROR_CUDA_ERROR on any CUDA
174174
* error.
175175
* --------------------------------------------------------------------------**/
176-
rmmError_t rmmFree(void *ptr, cudaStream_t stream,
176+
[[deprecated]] rmmError_t rmmFree(void *ptr, cudaStream_t stream,
177177
const char* file, unsigned int line);
178178

179179
/** ---------------------------------------------------------------------------*
@@ -212,7 +212,7 @@ rmmError_t rmmGetAllocationOffset(ptrdiff_t *offset,
212212
* has not been called, or RMM_ERROR_CUDA_ERROR on any CUDA
213213
* error
214214
* --------------------------------------------------------------------------**/
215-
rmmError_t rmmGetInfo(size_t *freeSize, size_t *totalSize, cudaStream_t stream);
215+
[[deprecated]] rmmError_t rmmGetInfo(size_t *freeSize, size_t *totalSize, cudaStream_t stream);
216216

217217
/** ---------------------------------------------------------------------------*
218218
* @brief Write the memory event stats log to specified path/filename
@@ -222,14 +222,14 @@ rmmError_t rmmGetInfo(size_t *freeSize, size_t *totalSize, cudaStream_t stream);
222222
* @param filename The full path and filename to write.
223223
* @return rmmError_t RMM_SUCCESS or RMM_ERROR_IO on output failure.
224224
* --------------------------------------------------------------------------**/
225-
rmmError_t rmmWriteLog(const char* filename);
225+
[[deprecated]] rmmError_t rmmWriteLog(const char* filename);
226226

227227
/** ---------------------------------------------------------------------------*
228228
* @brief Get the size of the CSV log string in memory.
229229
*
230230
* @return size_t The size of the log (as a C string) in memory.
231231
* --------------------------------------------------------------------------**/
232-
size_t rmmLogSize();
232+
[[deprecated]] size_t rmmLogSize();
233233

234234
/** ---------------------------------------------------------------------------*
235235
* @brief Get the RMM log as CSV in a C string.
@@ -238,4 +238,4 @@ size_t rmmLogSize();
238238
* @param[in] buffer_size The size allocated for buffer.
239239
* @return rmmError_t RMM_SUCCESS, or RMM_IO_ERROR on any failure.
240240
* --------------------------------------------------------------------------**/
241-
rmmError_t rmmGetLog(char* buffer, size_t buffer_size);
241+
[[deprecated]] rmmError_t rmmGetLog(char* buffer, size_t buffer_size);

tests/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ cmake_minimum_required(VERSION 3.12 FATAL_ERROR)
1818

1919
project(RMM_TESTS LANGUAGES C CXX CUDA)
2020

21-
set(CMAKE_CXX_STANDARD 11)
21+
set(CMAKE_CXX_STANDARD 14)
2222
set(CMAKE_CXX_STANDARD_REQUIRED ON)
2323

24-
set(CMAKE_CUDA_STANDARD 11)
24+
set(CMAKE_CUDA_STANDARD 14)
2525
set(CMAKE_CUDA_STANDARD_REQUIRED ON)
2626

2727
###################################################################################################

0 commit comments

Comments
 (0)