Skip to content

[ci] bump to ubuntu 24 #523

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

Merged
merged 2 commits into from
Apr 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ ubuntu:
metrics: build/metrics.txt
parallel:
matrix:
- IMAGE : [ "ubuntu:22.04" ]
- IMAGE : [ "ubuntu:24.04" ]
CXX: [ g++ ]
BUILD_TYPE : [ "RelWithDebInfo" ]
TA_PYTHON : [ "TA_PYTHON=OFF" ]
Expand Down
2 changes: 0 additions & 2 deletions tests/tensor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@
#include "tiledarray.h"
#include "unit_test_config.h"

const TensorFixture::range_type TensorFixture::r = make_range(81);

BOOST_FIXTURE_TEST_SUITE(tensor_suite, TensorFixture, TA_UT_LABEL_SERIAL)

BOOST_AUTO_TEST_CASE(anatomy) {
Expand Down
6 changes: 4 additions & 2 deletions tests/tensor_fixture.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,11 @@ struct TensorFixture {
typedef TensorN::range_type::index_view_type index_view_type;
typedef TensorN::range_type range_type;

static const range_type r;
const range_type r;

TensorFixture() : t(r) { rand_fill(18, t.size(), t.data()); }
TensorFixture() : r(make_range(81)), t(r) {
rand_fill(18, t.size(), t.data());
}

~TensorFixture() {}

Expand Down
8 changes: 4 additions & 4 deletions tests/tensor_um.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@ struct TensorUMFixture {
typedef TensorN::range_type::index_view_type* index_view_type;
typedef TensorN::range_type range_type;

static const range_type r;
const range_type r;

TensorUMFixture() : t(r) { rand_fill(18, t.size(), t.data()); }
TensorUMFixture() : r(make_range(81)), t(r) {
rand_fill(18, t.size(), t.data());
}

~TensorUMFixture() {}

Expand Down Expand Up @@ -85,8 +87,6 @@ struct TensorUMFixture {
TensorN t;
};

const TensorUMFixture::range_type TensorUMFixture::r = make_range(81);

BOOST_FIXTURE_TEST_SUITE(tensor_um_suite, TensorUMFixture, TA_UT_LABEL_SERIAL)

BOOST_AUTO_TEST_CASE(default_constructor) {
Expand Down
Loading