Skip to content

Commit 152dad4

Browse files
authored
Merge pull request #523 from ValeevGroup/evaleev/ci/bump-to-ubuntu-24
[ci] bump to ubuntu 24
2 parents c25f626 + 3fd2594 commit 152dad4

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

.gitlab-ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ ubuntu:
6868
metrics: build/metrics.txt
6969
parallel:
7070
matrix:
71-
- IMAGE : [ "ubuntu:22.04" ]
71+
- IMAGE : [ "ubuntu:24.04" ]
7272
CXX: [ g++ ]
7373
BUILD_TYPE : [ "RelWithDebInfo" ]
7474
TA_PYTHON : [ "TA_PYTHON=OFF" ]

tests/tensor.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@
2727
#include "tiledarray.h"
2828
#include "unit_test_config.h"
2929

30-
const TensorFixture::range_type TensorFixture::r = make_range(81);
31-
3230
BOOST_FIXTURE_TEST_SUITE(tensor_suite, TensorFixture, TA_UT_LABEL_SERIAL)
3331

3432
BOOST_AUTO_TEST_CASE(anatomy) {

tests/tensor_fixture.h

+4-2
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,11 @@ struct TensorFixture {
4141
typedef TensorN::range_type::index_view_type index_view_type;
4242
typedef TensorN::range_type range_type;
4343

44-
static const range_type r;
44+
const range_type r;
4545

46-
TensorFixture() : t(r) { rand_fill(18, t.size(), t.data()); }
46+
TensorFixture() : r(make_range(81)), t(r) {
47+
rand_fill(18, t.size(), t.data());
48+
}
4749

4850
~TensorFixture() {}
4951

tests/tensor_um.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,11 @@ struct TensorUMFixture {
3232
typedef TensorN::range_type::index_view_type* index_view_type;
3333
typedef TensorN::range_type range_type;
3434

35-
static const range_type r;
35+
const range_type r;
3636

37-
TensorUMFixture() : t(r) { rand_fill(18, t.size(), t.data()); }
37+
TensorUMFixture() : r(make_range(81)), t(r) {
38+
rand_fill(18, t.size(), t.data());
39+
}
3840

3941
~TensorUMFixture() {}
4042

@@ -85,8 +87,6 @@ struct TensorUMFixture {
8587
TensorN t;
8688
};
8789

88-
const TensorUMFixture::range_type TensorUMFixture::r = make_range(81);
89-
9090
BOOST_FIXTURE_TEST_SUITE(tensor_um_suite, TensorUMFixture, TA_UT_LABEL_SERIAL)
9191

9292
BOOST_AUTO_TEST_CASE(default_constructor) {

0 commit comments

Comments
 (0)