Skip to content

Commit

Permalink
Merge branch 'branch-0.42' into enable-build-warnings-errors
Browse files Browse the repository at this point in the history
  • Loading branch information
pentschev authored Dec 18, 2024
2 parents 7b8c0db + ec860d9 commit 9d1e5bf
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
3 changes: 1 addition & 2 deletions cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,7 @@ target_compile_definitions(
# Enable RMM if necessary
if(UCXX_ENABLE_RMM)
target_link_libraries(ucxx
PUBLIC rmm::rmm rmm::rmm_logger
PRIVATE rmm::rmm_logger_impl
PUBLIC rmm::rmm
)

# Define spdlog level
Expand Down
7 changes: 4 additions & 3 deletions cpp/include/ucxx/buffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@

#include <ucxx/log.h>

#if UCXX_ENABLE_RMM
#include <rmm/device_buffer.hpp>
#endif
namespace rmm {
// Forward declaration to prevent symbols from being added to symbol table unnecessarily.
class device_buffer;
} // namespace rmm

namespace ucxx {

Expand Down
4 changes: 4 additions & 0 deletions cpp/tests/buffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@

#include <ucxx/api.h>

#if UCXX_ENABLE_RMM
#include <rmm/device_buffer.hpp>
#endif

namespace {

class BufferAllocator : public ::testing::Test,
Expand Down
4 changes: 4 additions & 0 deletions cpp/tests/request.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
#include "ucxx/constructors.h"
#include "ucxx/utils/ucx.h"

#if UCXX_ENABLE_RMM
#include <rmm/device_buffer.hpp>
#endif

namespace {

using ::testing::Combine;
Expand Down

0 comments on commit 9d1e5bf

Please sign in to comment.