diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt index df51896d..fa7eca62 100644 --- a/cpp/CMakeLists.txt +++ b/cpp/CMakeLists.txt @@ -175,7 +175,12 @@ set_target_properties( CXX_STANDARD_REQUIRED ON CXX_VISIBILITY_PRESET hidden POSITION_INDEPENDENT_CODE ON - INTERFACE_POSITION_INDEPENDENT_CODE ON) + INTERFACE_POSITION_INDEPENDENT_CODE ON + # RMM_EXPORT is an ELF visibility attribute under __GNUC__ and empty + # otherwise, so a Windows build of this shared library exports nothing + # and every consumer fails to link. Let CMake generate the export + # table there; the property is ignored on other platforms. + WINDOWS_EXPORT_ALL_SYMBOLS ON) target_compile_definitions(rmm PUBLIC LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE) # Enable NVTX if necessary diff --git a/cpp/include/rmm/detail/runtime_capabilities.hpp b/cpp/include/rmm/detail/runtime_capabilities.hpp index 40ed5c9e..719a7ed9 100644 --- a/cpp/include/rmm/detail/runtime_capabilities.hpp +++ b/cpp/include/rmm/detail/runtime_capabilities.hpp @@ -44,7 +44,6 @@ #include -#include namespace RMM_NAMESPACE { namespace detail {