Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
Fix <memory_resource> breaking libcxx tests
Browse files Browse the repository at this point in the history
  • Loading branch information
miscco committed Mar 6, 2023
1 parent 6e33df0 commit 64e49a1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions include/cuda/memory_resource
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,7 @@ class resource_ref {
*/
// clang-format on

#ifndef LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE
#error "<cuda/memory_resource> is experimental and requires LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE to be defined"
#endif
#ifdef LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE

#include <cuda/stream_ref>

Expand Down Expand Up @@ -623,4 +621,6 @@ _LIBCUDACXX_END_NAMESPACE_CUDA

#include <cuda/std/detail/__pragma_pop>

#endif // LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE

#endif //_LIBCUDACXX_BEGIN_NAMESPACE_CUDA
6 changes: 3 additions & 3 deletions include/cuda/stream_ref
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@ private:
} // cuda
*/

#ifndef LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE
#error "<cuda/stream_ref> is experimental and requires LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE to be defined"
#endif
#ifdef LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE

#include <cuda_runtime_api.h> // cuda_runtime_api needs to come first
// clang-format on
Expand Down Expand Up @@ -187,4 +185,6 @@ _LIBCUDACXX_END_NAMESPACE_CUDA

#include <cuda/std/detail/__pragma_pop>

#endif // LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE

#endif //_CUDA_STREAM_REF

0 comments on commit 64e49a1

Please sign in to comment.