Skip to content

Commit

Permalink
fix spmd exports
Browse files Browse the repository at this point in the history
  • Loading branch information
icfaust committed Mar 3, 2025
1 parent 966dbcc commit 1fa1a6c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cpp/oneapi/dal/detail/communicator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ namespace v1 {
#ifdef ONEDAL_DATA_PARALLEL
/// Implementation of the low-level SPMD communicator interface
/// that uses host-only functions to exchange USM data
class spmd_communicator_via_host_impl : public spmd::communicator_iface {
class ONEDAL_EXPORT spmd_communicator_via_host_impl : public spmd::communicator_iface {
public:
// Explicitly declare all virtual functions with overloads to workaround Clang warning
// https://stackoverflow.com/questions/18515183/c-overloaded-virtual-function-warning-by-clang
Expand Down
4 changes: 2 additions & 2 deletions cpp/oneapi/dal/detail/spmd_policy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ const spmd::communicator<MemoryAccessKind>& spmd_policy_base<MemoryAccessKind>::
return impl_->comm;
}

template class spmd_policy_base<spmd::device_memory_access::usm>;
template class spmd_policy_base<spmd::device_memory_access::none>;
template class ONEDAL_EXPORT spmd_policy_base<spmd::device_memory_access::usm>;
template class ONEDAL_EXPORT spmd_policy_base<spmd::device_memory_access::none>;

} // namespace v1
} // namespace oneapi::dal::detail

0 comments on commit 1fa1a6c

Please sign in to comment.