Skip to content

Commit 79e0c17

Browse files
authored
Guard resource_ref and friends behind feature flag (NVIDIA#1675)
We still have some questions about the final design, so we want to keep them behind a feature flag.
1 parent 465d7f3 commit 79e0c17

38 files changed

+46
-14
lines changed

libcudacxx/docs/extended_api/memory_resource.md

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
The `<cuda/memory_resource>` header provides a standard C++ interface for *heterogeneous*, *stream-ordered* memory allocation tailored to the needs of CUDA C++ developers. This design builds off of the success of the [RAPIDS Memory Manager (RMM)](https://github.com/rapidsai/rmm) project and evolves the design based on lessons learned. `<cuda/memory_resource>` is not intended to replace RMM, but instead moves the definition of the memory allocation interface to a more centralized home in CCCL. RMM will remain as a collection of implementations of the `cuda::mr` interfaces.
44

5+
We are still experimenting with the design, so for now the contents of `<cuda/memory_resource>` are only available if `LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE` is defined.
6+
57
At a high level, the header provides:
68

79
1. the [`cuda::get_property`] infrastructure to tag a user defined type with a given property;

libcudacxx/include/cuda/__memory_resource/cuda_managed_memory_resource.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
# pragma system_header
2222
#endif // no system header
2323

24-
#if !defined(_CCCL_COMPILER_MSVC_2017)
24+
#if !defined(_CCCL_COMPILER_MSVC_2017) && defined(LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE)
2525

2626
# if !defined(_CCCL_CUDA_COMPILER_NVCC) && !defined(_CCCL_CUDA_COMPILER_NVHPC)
2727
# include <cuda_runtime_api.h>
@@ -186,6 +186,6 @@ _LIBCUDACXX_END_NAMESPACE_CUDA_MR
186186

187187
# endif // _CCCL_STD_VER >= 2014
188188

189-
#endif // !_CCCL_COMPILER_MSVC_2017
189+
#endif // !_CCCL_COMPILER_MSVC_2017 && LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE
190190

191191
#endif //_CUDA__MEMORY_RESOURCE_CUDA_MANAGED_MEMORY_RESOURCE_H

libcudacxx/include/cuda/__memory_resource/cuda_memory_resource.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
# pragma system_header
2222
#endif // no system header
2323

24-
#if !defined(_CCCL_COMPILER_MSVC_2017)
24+
#if !defined(_CCCL_COMPILER_MSVC_2017) && defined(LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE)
2525

2626
# if !defined(_CCCL_CUDA_COMPILER_NVCC) && !defined(_CCCL_CUDA_COMPILER_NVHPC)
2727
# include <cuda_runtime_api.h>
@@ -159,6 +159,6 @@ _LIBCUDACXX_END_NAMESPACE_CUDA_MR
159159

160160
# endif // _CCCL_STD_VER >= 2014
161161

162-
#endif // !_CCCL_COMPILER_MSVC_2017
162+
#endif // !_CCCL_COMPILER_MSVC_2017 && LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE
163163

164164
#endif //_CUDA__MEMORY_RESOURCE_CUDA_MEMORY_RESOURCE_H

libcudacxx/include/cuda/__memory_resource/cuda_pinned_memory_resource.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
# pragma system_header
2222
#endif // no system header
2323

24-
#if !defined(_CCCL_COMPILER_MSVC_2017)
24+
#if !defined(_CCCL_COMPILER_MSVC_2017) && defined(LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE)
2525

2626
# if !defined(_CCCL_CUDA_COMPILER_NVCC) && !defined(_CCCL_CUDA_COMPILER_NVHPC)
2727
# include <cuda_runtime.h>
@@ -187,6 +187,6 @@ _LIBCUDACXX_END_NAMESPACE_CUDA_MR
187187

188188
# endif // _CCCL_STD_VER >= 2014
189189

190-
#endif // !_CCCL_COMPILER_MSVC_2017
190+
#endif // !_CCCL_COMPILER_MSVC_2017 && LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE
191191

192192
#endif //_CUDA__MEMORY_RESOURCE_CUDA_PINNED_MEMORY_RESOURCE_H

libcudacxx/include/cuda/__memory_resource/get_property.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
# pragma system_header
2222
#endif // no system header
2323

24-
#if !defined(_CCCL_COMPILER_MSVC_2017)
24+
#if !defined(_CCCL_COMPILER_MSVC_2017) && defined(LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE)
2525

2626
# include <cuda/std/__concepts/same_as.h>
2727
# include <cuda/std/__type_traits/remove_const_ref.h>
@@ -130,6 +130,6 @@ _LIBCUDACXX_END_NAMESPACE_CUDA
130130

131131
# endif // _CCCL_STD_VER >= 2014
132132

133-
#endif // !_CCCL_COMPILER_MSVC_2017
133+
#endif // !_CCCL_COMPILER_MSVC_2017 && LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE
134134

135135
#endif //_CUDA__MEMORY_RESOURCE_GET_PROPERTY_H

libcudacxx/include/cuda/__memory_resource/properties.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
#include <cuda/std/cstddef>
2525

26-
#if !defined(_CCCL_COMPILER_MSVC_2017)
26+
#if !defined(_CCCL_COMPILER_MSVC_2017) && defined(LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE)
2727

2828
# if _CCCL_STD_VER >= 2014
2929

@@ -67,6 +67,6 @@ _LIBCUDACXX_END_NAMESPACE_CUDA_MR
6767

6868
# endif // _CCCL_STD_VER >= 2014
6969

70-
#endif // !_CCCL_COMPILER_MSVC_2017
70+
#endif // !_CCCL_COMPILER_MSVC_2017 && LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE
7171

7272
#endif //_CUDA__MEMORY_RESOURCE_PROPERTIES_H

libcudacxx/include/cuda/__memory_resource/resource.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
# pragma system_header
2222
#endif // no system header
2323

24-
#if !defined(_CCCL_COMPILER_MSVC_2017)
24+
#if !defined(_CCCL_COMPILER_MSVC_2017) && defined(LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE)
2525

2626
# include <cuda/__memory_resource/get_property.h>
2727
# include <cuda/std/__concepts/all_of.h>
@@ -80,6 +80,6 @@ _LIBCUDACXX_END_NAMESPACE_CUDA_MR
8080

8181
# endif // _CCCL_STD_VER >= 2014
8282

83-
#endif // !_CCCL_COMPILER_MSVC_2017
83+
#endif // !_CCCL_COMPILER_MSVC_2017 && LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE
8484

8585
#endif //_CUDA__MEMORY_RESOURCE_RESOURCE_H

libcudacxx/include/cuda/__memory_resource/resource_ref.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
# pragma system_header
2222
#endif // no system header
2323

24-
#if !defined(_CCCL_COMPILER_MSVC_2017)
24+
#if !defined(_CCCL_COMPILER_MSVC_2017) && defined(LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE)
2525

2626
# include <cuda/__memory_resource/get_property.h>
2727
# include <cuda/__memory_resource/resource.h>
@@ -390,6 +390,6 @@ _LIBCUDACXX_END_NAMESPACE_CUDA_MR
390390

391391
# endif // _CCCL_STD_VER >= 2014
392392

393-
#endif // !_CCCL_COMPILER_MSVC_2017
393+
#endif // !_CCCL_COMPILER_MSVC_2017 && LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE
394394

395395
#endif //_CUDA__MEMORY_RESOURCE_RESOURCE_REF_H

libcudacxx/test/libcudacxx/cuda/memory_resource/cuda_managed_memory_resource/allocate.pass.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
// UNSUPPORTED: c++03, c++11
1212
// UNSUPPORTED: msvc-19.16
1313
// UNSUPPORTED: nvrtc
14+
#define LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE
1415

1516
#include <cuda/memory_resource>
1617
#include <cuda/std/cassert>

libcudacxx/test/libcudacxx/cuda/memory_resource/cuda_managed_memory_resource/equality.pass.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
// UNSUPPORTED: c++03, c++11
1212
// UNSUPPORTED: msvc-19.16
1313
// UNSUPPORTED: nvrtc
14+
#define LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE
1415

1516
#include <cuda/memory_resource>
1617
#include <cuda/std/cassert>

libcudacxx/test/libcudacxx/cuda/memory_resource/cuda_managed_memory_resource/traits.pass.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
// UNSUPPORTED: c++03, c++11
1212
// UNSUPPORTED: msvc-19.16
1313
// UNSUPPORTED: nvrtc
14+
#define LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE
1415

1516
#include <cuda/memory_resource>
1617
#include <cuda/std/type_traits>

libcudacxx/test/libcudacxx/cuda/memory_resource/cuda_memory_resource/allocate.pass.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
// UNSUPPORTED: c++03, c++11
1212
// UNSUPPORTED: msvc-19.16
1313
// UNSUPPORTED: nvrtc
14+
#define LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE
1415

1516
#include <cuda/memory_resource>
1617
#include <cuda/std/cassert>

libcudacxx/test/libcudacxx/cuda/memory_resource/cuda_memory_resource/equality.pass.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
// UNSUPPORTED: c++03, c++11
1212
// UNSUPPORTED: msvc-19.16
1313
// UNSUPPORTED: nvrtc
14+
#define LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE
1415

1516
#include <cuda/memory_resource>
1617
#include <cuda/std/cassert>

libcudacxx/test/libcudacxx/cuda/memory_resource/cuda_memory_resource/traits.pass.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
// UNSUPPORTED: c++03, c++11
1212
// UNSUPPORTED: msvc-19.16
1313
// UNSUPPORTED: nvrtc
14+
#define LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE
1415

1516
#include <cuda/memory_resource>
1617
#include <cuda/std/type_traits>

libcudacxx/test/libcudacxx/cuda/memory_resource/cuda_pinned_memory_resource/allocate.pass.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
// UNSUPPORTED: c++03, c++11
1212
// UNSUPPORTED: msvc-19.16
1313
// UNSUPPORTED: nvrtc
14+
#define LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE
1415

1516
#include <cuda/memory_resource>
1617
#include <cuda/std/cassert>

libcudacxx/test/libcudacxx/cuda/memory_resource/cuda_pinned_memory_resource/equality.pass.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
// UNSUPPORTED: c++03, c++11
1212
// UNSUPPORTED: msvc-19.16
1313
// UNSUPPORTED: nvrtc
14+
#define LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE
1415

1516
#include <cuda/memory_resource>
1617
#include <cuda/std/cassert>

libcudacxx/test/libcudacxx/cuda/memory_resource/cuda_pinned_memory_resource/traits.pass.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
// UNSUPPORTED: c++03, c++11
1212
// UNSUPPORTED: msvc-19.16
1313
// UNSUPPORTED: nvrtc
14+
#define LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE
1415

1516
#include <cuda/memory_resource>
1617
#include <cuda/std/type_traits>

libcudacxx/test/libcudacxx/cuda/memory_resource/get_property/forward_property.pass.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
// UNSUPPORTED: c++03, c++11
1111
// UNSUPPORTED: msvc-19.16
1212
// UNSUPPORTED: nvrtc
13+
#define LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE
1314
// cuda::forward_property
1415

1516
#include <cuda/memory_resource>

libcudacxx/test/libcudacxx/cuda/memory_resource/get_property/get_property.pass.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
// UNSUPPORTED: c++03, c++11
1111
// UNSUPPORTED: msvc-19.16
1212
// UNSUPPORTED: nvrtc
13+
#define LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE
1314

1415
// cuda::get_property
1516

libcudacxx/test/libcudacxx/cuda/memory_resource/get_property/has_property.pass.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
// UNSUPPORTED: c++03, c++11
1111
// UNSUPPORTED: msvc-19.16
1212
// UNSUPPORTED: nvrtc
13+
#define LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE
1314

1415
// cuda::has_property, cuda::has_property_with
1516

libcudacxx/test/libcudacxx/cuda/memory_resource/memory_resource.async_resource_ref/async_resource_ref.allocate.pass.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
// UNSUPPORTED: c++03, c++11
1111
// UNSUPPORTED: msvc-19.16
1212
// UNSUPPORTED: nvrtc
13+
#define LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE
1314

1415
// cuda::mr::async_resource_ref properties
1516

libcudacxx/test/libcudacxx/cuda/memory_resource/memory_resource.async_resource_ref/async_resource_ref.construction.pass.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
// UNSUPPORTED: c++03, c++11
1111
// UNSUPPORTED: msvc-19.16
1212
// UNSUPPORTED: nvrtc
13+
#define LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE
1314

1415
// cuda::mr::async_resource_ref construction
1516

libcudacxx/test/libcudacxx/cuda/memory_resource/memory_resource.async_resource_ref/async_resource_ref.conversion.pass.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
// UNSUPPORTED: c++03, c++11
1111
// UNSUPPORTED: msvc-19.16
1212
// UNSUPPORTED: nvrtc
13+
#define LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE
1314

1415
// cuda::mr::resource_ref properties
1516

libcudacxx/test/libcudacxx/cuda/memory_resource/memory_resource.async_resource_ref/async_resource_ref.equality.fail.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
// UNSUPPORTED: c++03, c++11
1111
// UNSUPPORTED: msvc-19.16
1212
// UNSUPPORTED: nvrtc
13+
#define LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE
1314

1415
// cuda::mr::async_resource_ref equality
1516

libcudacxx/test/libcudacxx/cuda/memory_resource/memory_resource.async_resource_ref/async_resource_ref.equality.pass.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
// UNSUPPORTED: c++03, c++11
1111
// UNSUPPORTED: msvc-19.16
1212
// UNSUPPORTED: nvrtc
13+
#define LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE
1314

1415
// cuda::mr::async_resource_ref equality
1516

libcudacxx/test/libcudacxx/cuda/memory_resource/memory_resource.async_resource_ref/async_resource_ref.inheritance.pass.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
// UNSUPPORTED: c++03, c++11
1111
// UNSUPPORTED: msvc-19.16
1212
// UNSUPPORTED: nvrtc
13+
#define LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE
1314

1415
// cuda::mr::resource_ref properties
1516

libcudacxx/test/libcudacxx/cuda/memory_resource/memory_resource.async_resource_ref/async_resource_ref.properties.pass.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
// UNSUPPORTED: c++03, c++11
1111
// UNSUPPORTED: msvc-19.16
1212
// UNSUPPORTED: nvrtc
13+
#define LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE
1314

1415
// cuda::mr::async_resource_ref properties
1516

libcudacxx/test/libcudacxx/cuda/memory_resource/memory_resource.concepts/async_resource.pass.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
// UNSUPPORTED: c++03, c++11
1111
// UNSUPPORTED: msvc-19.16
1212
// UNSUPPORTED: nvrtc
13+
#define LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE
1314

1415
// cuda::mr::async_resource
1516

libcudacxx/test/libcudacxx/cuda/memory_resource/memory_resource.concepts/async_resource_with.pass.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
// UNSUPPORTED: c++03, c++11
1111
// UNSUPPORTED: msvc-19.16
1212
// UNSUPPORTED: nvrtc
13+
#define LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE
1314

1415
// cuda::mr::async_resource_with
1516

libcudacxx/test/libcudacxx/cuda/memory_resource/memory_resource.concepts/resource.pass.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
// UNSUPPORTED: c++03, c++11
1111
// UNSUPPORTED: msvc-19.16
1212
// UNSUPPORTED: nvrtc
13+
#define LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE
1314

1415
// cuda::mr::resource
1516

libcudacxx/test/libcudacxx/cuda/memory_resource/memory_resource.concepts/resource_with.pass.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
// UNSUPPORTED: c++03, c++11
1111
// UNSUPPORTED: msvc-19.16
1212
// UNSUPPORTED: nvrtc
13+
#define LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE
1314

1415
// cuda::mr::resource_with
1516

libcudacxx/test/libcudacxx/cuda/memory_resource/memory_resource.resource_ref/resource_ref.allocate.pass.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
// UNSUPPORTED: c++03, c++11
1111
// UNSUPPORTED: msvc-19.16
1212
// UNSUPPORTED: nvrtc
13+
#define LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE
1314

1415
// cuda::mr::resource_ref properties
1516

libcudacxx/test/libcudacxx/cuda/memory_resource/memory_resource.resource_ref/resource_ref.construction.pass.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
// UNSUPPORTED: c++03, c++11
1111
// UNSUPPORTED: msvc-19.16
1212
// UNSUPPORTED: nvrtc
13+
#define LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE
1314

1415
// cuda::mr::resource_ref construction
1516

libcudacxx/test/libcudacxx/cuda/memory_resource/memory_resource.resource_ref/resource_ref.conversion.pass.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
// UNSUPPORTED: c++03, c++11
1111
// UNSUPPORTED: msvc-19.16
1212
// UNSUPPORTED: nvrtc
13+
#define LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE
1314

1415
// cuda::mr::resource_ref properties
1516

libcudacxx/test/libcudacxx/cuda/memory_resource/memory_resource.resource_ref/resource_ref.equality.fail.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
// UNSUPPORTED: c++03, c++11
1111
// UNSUPPORTED: msvc-19.16
1212
// UNSUPPORTED: nvrtc
13+
#define LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE
1314

1415
// cuda::mr::resource_ref equality
1516

libcudacxx/test/libcudacxx/cuda/memory_resource/memory_resource.resource_ref/resource_ref.equality.pass.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
// UNSUPPORTED: c++03, c++11
1111
// UNSUPPORTED: msvc-19.16
1212
// UNSUPPORTED: nvrtc
13+
#define LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE
1314

1415
// cuda::mr::resource_ref equality
1516

libcudacxx/test/libcudacxx/cuda/memory_resource/memory_resource.resource_ref/resource_ref.inheritance.pass.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
// UNSUPPORTED: c++03, c++11
1111
// UNSUPPORTED: msvc-19.16
1212
// UNSUPPORTED: nvrtc
13+
#define LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE
1314

1415
// cuda::mr::resource_ref properties
1516

libcudacxx/test/libcudacxx/cuda/memory_resource/memory_resource.resource_ref/resource_ref.properties.pass.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
// UNSUPPORTED: c++03, c++11
1111
// UNSUPPORTED: msvc-19.16
1212
// UNSUPPORTED: nvrtc
13+
#define LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE
1314

1415
// cuda::mr::resource_ref properties
1516

0 commit comments

Comments
 (0)