Skip to content

Commit

Permalink
another approach to the namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
robertmaynard committed Sep 9, 2022
1 parent 47000b1 commit ebe9f11
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 6 additions & 1 deletion include/rmm/detail/thrust_namespace.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

#pragma once

#include <thrust/detail/config.h> // namespace macros

#ifdef THRUST_WRAPPED_NAMESPACE

// Ensure the namespace exist before we import it
Expand All @@ -24,6 +26,9 @@ namespace THRUST_WRAPPED_NAMESPACE {
namespace thrust {
}
} // namespace THRUST_WRAPPED_NAMESPACE
using namespace THRUST_WRAPPED_NAMESPACE;

namespace rmm {
using namespace THRUST_WRAPPED_NAMESPACE;
}

#endif
4 changes: 4 additions & 0 deletions tests/device_buffer_tests.cu
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@

#include <thrust/equal.h>
#include <thrust/sequence.h>
namespace testing{
namespace thrust = THRUST_NS_QUALIFIER;
}
using namespace testing;

#include <cuda_runtime_api.h>

Expand Down

0 comments on commit ebe9f11

Please sign in to comment.