-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dash::GlobStaticMem<LMemSpace>::operator= is a deleted function #666
Labels
Comments
any news here? thanks. |
Just got word that Intel 19.4 does not has this issue. Is there any know workaround. |
And still no response here. Thanks. |
My pragmatic solution is to add a diff --git i/dash/include/dash/Array.h w/dash/include/dash/Array.h
index 373bd6574..53a18062a 100644
--- i/dash/include/dash/Array.h
+++ w/dash/include/dash/Array.h
@@ -1448,7 +1448,7 @@ private:
m_data.reset();
m_team = &(m_pattern.team());
- m_globmem = memory_type{*m_team};
+ m_globmem.reset(*m_team);
m_allocator = allocator_type{&m_globmem};
// Check requested capacity:
diff --git i/dash/include/dash/matrix/internal/Matrix-inl.h w/dash/include/dash/matrix/internal/Matrix-inl.h
index 8ff97173d..7ad02ed66 100644
--- i/dash/include/dash/matrix/internal/Matrix-inl.h
+++ w/dash/include/dash/matrix/internal/Matrix-inl.h
@@ -214,7 +214,7 @@ bool Matrix<T, NumDim, IndexT, PatternT, LocalMemT>
_team = &pattern.team();
}
- _glob_mem = GlobMem_t{*_team};
+ _glob_mem.reset(*_team);
_allocator = allocator_type{&_glob_mem};
// Copy sizes from pattern:
diff --git i/dash/include/dash/memory/GlobStaticMem.h w/dash/include/dash/memory/GlobStaticMem.h
index d89793296..b916413d4 100644
--- i/dash/include/dash/memory/GlobStaticMem.h
+++ w/dash/include/dash/memory/GlobStaticMem.h
@@ -142,6 +142,12 @@ public:
GlobStaticMem& operator=(GlobStaticMem&&) noexcept = default;
+ void reset(dash::Team const& team)
+ {
+ m_team = &team;
+ m_local_sizes.resize(std::max(team.size(), std::size_t(1)));
+ }
+
constexpr size_type capacity() const noexcept;
constexpr size_type capacity(dash::team_unit_t uid) const noexcept |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The intel compiler 18.5 complains about calling a
delete
member function:Here are the errors:
The text was updated successfully, but these errors were encountered: