Skip to content

Commit 8ab356e

Browse files
authored
Merge pull request #471 from ValeevGroup/evaleev/fix/nonzero-lobound-array-to-eigen
array<->eigen conversions + assignment to block expressions work with arrays/expressions with nonzero lobound/base
2 parents 8af44bd + ae1cf06 commit 8ab356e

34 files changed

+1555
-451
lines changed

.gitlab-ci.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -57,22 +57,22 @@ ubuntu:
5757
metrics: build/metrics.txt
5858
parallel:
5959
matrix:
60-
- IMAGE : [ "ubuntu:22.04", "ubuntu:20.04" ]
60+
- IMAGE : [ "ubuntu:20.04" ]
6161
CXX: [ g++ ]
62-
BUILD_TYPE : [ "Release" ]
62+
BUILD_TYPE : [ "RelWithDebInfo" ]
6363
BLA_VENDOR : [ "BLAS_PREFERENCE_LIST=IntelMKL" ]
6464
BLA_THREADS : [ "IntelMKL_THREAD_LAYER=tbb" ]
6565
# ENABLE_SCALAPACK : [ "ENABLE_SCALAPACK=ON", "ENABLE_SCALAPACK=OFF" ]
6666
TA_PYTHON : [ "TA_PYTHON=OFF" ] # needs to be fixed for MKL
6767
RUNNER_TAGS: [ saas-linux-small-amd64 ]
68-
- IMAGE : [ "ubuntu:22.04", "ubuntu:20.04" ]
68+
- IMAGE : [ "ubuntu:22.04" ]
6969
CXX: [ g++, clang++-13 ]
70-
BUILD_TYPE : [ "Release", "Debug" ]
70+
BUILD_TYPE : [ "RelWithDebInfo" ]
7171
ENABLE_SCALAPACK : [ "ENABLE_SCALAPACK=ON", "ENABLE_SCALAPACK=OFF" ]
7272
RUNNER_TAGS: [ saas-linux-small-amd64 ]
73-
- IMAGE : [ "ubuntu:22.04", "ubuntu:20.04" ]
73+
- IMAGE : [ "ubuntu:22.04" ]
7474
CXX: [ g++ ]
75-
BUILD_TYPE : [ "Release", "Debug" ]
75+
BUILD_TYPE : [ "RelWithDebInfo" ]
7676
ENABLE_CUDA : [ "ENABLE_CUDA=ON" ]
7777
TA_TARGETS : [ "tiledarray examples-tiledarray check_serial-tiledarray" ]
7878
RUNNER_TAGS: [ cuda ]

INSTALL.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Both methods are supported. However, for most users we _strongly_ recommend to b
4343
- [Range-V3](https://github.com/ericniebler/range-v3.git) -- a Ranges library that served as the basis for Ranges component of C++20 and later.
4444
- [BTAS](http://github.com/ValeevGroup/BTAS), tag 4e8f5233aa7881dccdfcc37ce07128833926d3c2 . If usable BTAS installation is not found, TiledArray will download and compile
4545
BTAS from source. *This is the recommended way to compile BTAS for all users*.
46-
- [MADNESS](https://github.com/m-a-d-n-e-s-s/madness), tag 96ac90e8f193ccfaf16f346b4652927d2d362e75 .
46+
- [MADNESS](https://github.com/m-a-d-n-e-s-s/madness), tag 95589b0d020a076f93d02eead6da654b23dd3d91 .
4747
Only the MADworld runtime and BLAS/LAPACK C API component of MADNESS is used by TiledArray.
4848
If usable MADNESS installation is not found, TiledArray will download and compile
4949
MADNESS from source. *This is the recommended way to compile MADNESS for all users*.

external/versions.cmake

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ set(TA_INSTALL_EIGEN_PREVIOUS_VERSION 3.3.7)
1111
set(TA_INSTALL_EIGEN_URL_HASH SHA256=b4c198460eba6f28d34894e3a5710998818515104d6e74e5cc331ce31e46e626)
1212
set(TA_INSTALL_EIGEN_PREVIOUS_URL_HASH MD5=b9e98a200d2455f06db9c661c5610496)
1313

14-
set(TA_TRACKED_MADNESS_TAG 96ac90e8f193ccfaf16f346b4652927d2d362e75)
15-
set(TA_TRACKED_MADNESS_PREVIOUS_TAG 3d0ae2fad1b97e347ca6dd98b9f1b9e74e629f52)
14+
set(TA_TRACKED_MADNESS_TAG 95589b0d020a076f93d02eead6da654b23dd3d91)
15+
set(TA_TRACKED_MADNESS_PREVIOUS_TAG 96ac90e8f193ccfaf16f346b4652927d2d362e75)
1616
set(TA_TRACKED_MADNESS_VERSION 0.10.1)
1717
set(TA_TRACKED_MADNESS_PREVIOUS_VERSION 0.10.1)
1818

python/src/TiledArray/python/trange.h

+1-6
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ auto list(const TiledRange &trange) {
4545
return v;
4646
}
4747

48-
// template<>
4948
inline TiledRange make_trange(std::vector<std::vector<int64_t> > trange) {
5049
std::vector<TiledRange1> trange1;
5150
for (auto tr : trange) {
@@ -58,11 +57,7 @@ inline TiledRange make_trange(std::vector<std::vector<int64_t> > trange) {
5857
inline TiledRange make_trange(std::vector<int64_t> shape, size_t block) {
5958
std::vector<TiledRange1> trange1;
6059
for (size_t i = 0; i < shape.size(); ++i) {
61-
std::vector<int64_t> tr1;
62-
for (size_t j = 0; j <= (shape[i] + block - 1); j += block) {
63-
tr1.push_back(std::min<int64_t>(j, shape[i]));
64-
}
65-
trange1.push_back(TiledRange1(tr1.begin(), tr1.end()));
60+
trange1.emplace_back(TiledRange1::make_uniform(shape[i], block));
6661
}
6762
return TiledRange(trange1.begin(), trange1.end());
6863
}

src/TiledArray/conversions/btas.h

+200-48
Large diffs are not rendered by default.

src/TiledArray/conversions/concat.h

+1-4
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ DistArray<Tile, Policy> concat(
6464
using std::begin;
6565
using std::end;
6666

67-
index b(r), e(r); // updated for concatted modes only
67+
index b(r), e(r); // updated for concatenated modes only
6868
std::fill(begin(b), end(b), 0);
6969
for (auto i = 0ul; i != arrays.size(); ++i) {
7070
auto& tr = arrays[i].trange();
@@ -97,9 +97,6 @@ DistArray<Tile, Policy> concat(
9797
result.make_tsrexpr(annot).block(tile_begin_end[i].first,
9898
tile_begin_end[i].second) =
9999
arrays[i].make_tsrexpr(annot);
100-
result.make_tsrexpr(annot).block(tile_begin_end[i].first,
101-
tile_begin_end[i].second) =
102-
arrays[i].make_tsrexpr(annot);
103100
}
104101
}
105102
result.world().gop.fence();

0 commit comments

Comments
 (0)