Skip to content

Commit b0c7934

Browse files
authored
Merge pull request #260 from ValeevGroup/evaleev/update/btas
Evaleev/update/btas
2 parents 3f563ca + 24c40a9 commit b0c7934

File tree

5 files changed

+4
-118
lines changed

5 files changed

+4
-118
lines changed

.pre-commit-config.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,3 @@ repos:
4040
files: \.(c|cc|cxx|cpp|h|hpp|hxx)$
4141
entry: clang-format -i
4242
args: [--style=file]
43-
additional_dependencies: [clang-format]

INSTALL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Both methods are supported. However, for most users we _strongly_ recommend to b
4040
- Boost.Container: header-only
4141
- Boost.Test: header-only or (optionally) as a compiled library, *only used for unit testing*
4242
- Boost.Range: header-only, *only used for unit testing*
43-
- [BTAS](http://github.com/ValeevGroup/BTAS), tag 8752fb97fc68d1982c48283aba4b03c744389ba8 . If usable BTAS installation is not found, TiledArray will download and compile
43+
- [BTAS](http://github.com/ValeevGroup/BTAS), tag bbb11894802d7e2f89182a2e7fce9aed1078f851 . If usable BTAS installation is not found, TiledArray will download and compile
4444
BTAS from source. *This is the recommended way to compile BTAS for all users*.
4545
- [MADNESS](https://github.com/m-a-d-n-e-s-s/madness), tag b22ee85059e6ccc9a6e803ba0550652ece8d9df1 .
4646
Only the MADworld runtime and BLAS/LAPACK C API component of MADNESS is used by TiledArray.

external/versions.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ set(TA_TRACKED_MADNESS_PREVIOUS_TAG 925552feaf326cca8e83de7bd042074ad3cfd3f1)
2222
set(TA_TRACKED_MADNESS_VERSION 0.10.1)
2323
set(TA_TRACKED_MADNESS_PREVIOUS_VERSION 0.10.1)
2424

25-
set(TA_TRACKED_BTAS_TAG 8752fb97fc68d1982c48283aba4b03c744389ba8)
26-
set(TA_TRACKED_BTAS_PREVIOUS_TAG 1ee43ef413c12166e3ce3db2ac69160c7622f497)
25+
set(TA_TRACKED_BTAS_TAG bbb11894802d7e2f89182a2e7fce9aed1078f851)
26+
set(TA_TRACKED_BTAS_PREVIOUS_TAG 8752fb97fc68d1982c48283aba4b03c744389ba8)
2727

2828
set(TA_TRACKED_CUTT_TAG 0e8685bf82910bc7435835f846e88f1b39f47f09)
2929
set(TA_TRACKED_CUTT_PREVIOUS_TAG 592198b93c93b7ca79e7900b9a9f2e79f9dafec3)

src/TiledArray/external/btas.h

Lines changed: 0 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -851,91 +851,4 @@ struct Cast<TiledArray::Tensor<T, Allocator>,
851851
};
852852
} // namespace TiledArray
853853

854-
namespace madness {
855-
namespace archive {
856-
857-
template <class Archive, typename T>
858-
struct ArchiveLoadImpl<Archive, btas::varray<T>> {
859-
static inline void load(const Archive& ar, btas::varray<T>& x) {
860-
typename btas::varray<T>::size_type n{};
861-
ar& n;
862-
x.resize(n);
863-
for (typename btas::varray<T>::value_type& xi : x) ar& xi;
864-
}
865-
};
866-
867-
template <class Archive, typename T>
868-
struct ArchiveStoreImpl<Archive, btas::varray<T>> {
869-
static inline void store(const Archive& ar, const btas::varray<T>& x) {
870-
ar& x.size();
871-
for (const typename btas::varray<T>::value_type& xi : x) ar& xi;
872-
}
873-
};
874-
875-
template <class Archive, blas::Layout _Order, typename _Index>
876-
struct ArchiveLoadImpl<Archive, btas::BoxOrdinal<_Order, _Index>> {
877-
static inline void load(const Archive& ar,
878-
btas::BoxOrdinal<_Order, _Index>& o) {
879-
typename btas::BoxOrdinal<_Order, _Index>::stride_type stride{};
880-
typename btas::BoxOrdinal<_Order, _Index>::value_type offset{};
881-
bool cont{};
882-
ar& stride& offset& cont;
883-
o = btas::BoxOrdinal<_Order, _Index>(std::move(stride), std::move(offset),
884-
std::move(cont));
885-
}
886-
};
887-
888-
template <class Archive, blas::Layout _Order, typename _Index>
889-
struct ArchiveStoreImpl<Archive, btas::BoxOrdinal<_Order, _Index>> {
890-
static inline void store(const Archive& ar,
891-
const btas::BoxOrdinal<_Order, _Index>& o) {
892-
ar& o.stride() & o.offset() & o.contiguous();
893-
}
894-
};
895-
896-
template <class Archive, blas::Layout _Order, typename _Index,
897-
typename _Ordinal>
898-
struct ArchiveLoadImpl<Archive, btas::RangeNd<_Order, _Index, _Ordinal>> {
899-
static inline void load(const Archive& ar,
900-
btas::RangeNd<_Order, _Index, _Ordinal>& r) {
901-
typedef typename btas::BaseRangeNd<
902-
btas::RangeNd<_Order, _Index, _Ordinal>>::index_type index_type;
903-
index_type lobound{}, upbound{};
904-
_Ordinal ordinal{};
905-
ar& lobound& upbound& ordinal;
906-
r = btas::RangeNd<_Order, _Index, _Ordinal>(
907-
std::move(lobound), std::move(upbound), std::move(ordinal));
908-
}
909-
};
910-
911-
template <class Archive, blas::Layout _Order, typename _Index,
912-
typename _Ordinal>
913-
struct ArchiveStoreImpl<Archive, btas::RangeNd<_Order, _Index, _Ordinal>> {
914-
static inline void store(const Archive& ar,
915-
const btas::RangeNd<_Order, _Index, _Ordinal>& r) {
916-
ar& r.lobound() & r.upbound() & r.ordinal();
917-
}
918-
};
919-
920-
template <class Archive, typename _T, class _Range, class _Store>
921-
struct ArchiveLoadImpl<Archive, btas::Tensor<_T, _Range, _Store>> {
922-
static inline void load(const Archive& ar,
923-
btas::Tensor<_T, _Range, _Store>& t) {
924-
_Range range{};
925-
_Store store{};
926-
ar& range& store;
927-
t = btas::Tensor<_T, _Range, _Store>(std::move(range), std::move(store));
928-
}
929-
};
930-
931-
template <class Archive, typename _T, class _Range, class _Store>
932-
struct ArchiveStoreImpl<Archive, btas::Tensor<_T, _Range, _Store>> {
933-
static inline void store(const Archive& ar,
934-
const btas::Tensor<_T, _Range, _Store>& t) {
935-
ar& t.range() & t.storage();
936-
}
937-
};
938-
} // namespace archive
939-
} // namespace madness
940-
941854
#endif /* TILEDARRAY_EXTERNAL_BTAS_H__INCLUDED */

src/TiledArray/util/vector.h

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626
#ifndef TILEDARRAY_UTIL_VECTOR_H
2727
#define TILEDARRAY_UTIL_VECTOR_H
2828

29-
#include "TiledArray/config.h"
3029
#include <boost/container/small_vector.hpp>
3130
#include <vector>
31+
#include "TiledArray/config.h"
3232

3333
#include <TiledArray/utility.h>
3434
#include <madness/world/archive.h>
@@ -84,32 +84,6 @@ constexpr auto iv(Int i0, Ints... rest) {
8484
} // namespace container
8585
} // namespace TiledArray
8686

87-
namespace madness {
88-
namespace archive {
89-
90-
template <class Archive, typename T, std::size_t N, typename A>
91-
struct ArchiveLoadImpl<Archive, boost::container::small_vector<T, N, A>> {
92-
static inline void load(const Archive& ar,
93-
boost::container::small_vector<T, N, A>& x) {
94-
std::size_t n{};
95-
ar& n;
96-
x.resize(n);
97-
for (auto& xi : x) ar& xi;
98-
}
99-
};
100-
101-
template <class Archive, typename T, std::size_t N, typename A>
102-
struct ArchiveStoreImpl<Archive, boost::container::small_vector<T, N, A>> {
103-
static inline void store(const Archive& ar,
104-
const boost::container::small_vector<T, N, A>& x) {
105-
ar& x.size();
106-
for (const auto& xi : x) ar& xi;
107-
}
108-
};
109-
110-
} // namespace archive
111-
} // namespace madness
112-
11387
namespace TiledArray {
11488

11589
/// Vector output stream operator

0 commit comments

Comments
 (0)