Skip to content
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

Common test infrastructure + PCA tests migration #1378

Merged
merged 24 commits into from
Jan 28, 2021

Conversation

rlnx
Copy link
Contributor

@rlnx rlnx commented Jan 21, 2021

  • test/engine for basic test routines
    • linalg module to simplify linear algebra operations
    • mkl thin wrappers over MKL

@rlnx
Copy link
Contributor Author

rlnx commented Jan 21, 2021

/intelci: run

.bazelrc Outdated Show resolved Hide resolved
cpp/oneapi/dal/BUILD Outdated Show resolved Hide resolved
cpp/oneapi/dal/algo/pca/BUILD Show resolved Hide resolved
cpp/oneapi/dal/algo/pca/backend/common.hpp Outdated Show resolved Hide resolved
cpp/oneapi/dal/algo/pca/backend/cpu/train_kernel_svd.cpp Outdated Show resolved Hide resolved
cpp/oneapi/dal/backend/linalg/loops.hpp Outdated Show resolved Hide resolved
cpp/oneapi/dal/backend/linalg/io.hpp Outdated Show resolved Hide resolved
cpp/oneapi/dal/backend/linalg/matrix.hpp Outdated Show resolved Hide resolved
cpp/oneapi/dal/backend/linalg/matrix.hpp Outdated Show resolved Hide resolved
@rlnx
Copy link
Contributor Author

rlnx commented Jan 25, 2021

/intelci: run

@rlnx rlnx added the oneAPI Issue/PR related to oneAPI part label Jan 25, 2021
@rlnx
Copy link
Contributor Author

rlnx commented Jan 26, 2021

/intelci: run

@rlnx rlnx requested a review from napetrov January 26, 2021 12:59
@rlnx
Copy link
Contributor Author

rlnx commented Jan 26, 2021

@napetrov, please have a look at .ci/env/oneapi.sh

@rlnx
Copy link
Contributor Author

rlnx commented Jan 26, 2021

/intelci: run

@rlnx
Copy link
Contributor Author

rlnx commented Jan 26, 2021

/intelci: run

sudo apt-get update
sudo apt-get install gcc-multilib \
g++-multilib \
binutils \
openjdk-11-jdk \
bazel-3.4.1
bazel-4.0.0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be good to get this regularly updated - for example via https://docs.renovatebot.com/modules/manager/regex/
This shouldn't block integraton

@napetrov
Copy link
Contributor

@napetrov, please have a look at .ci/env/oneapi.sh

Looks good

Copy link
Contributor

@michael-smirnov michael-smirnov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reviewed dal/test/engine folder without sub-folders

cpp/oneapi/dal/test/engine/config.cpp Show resolved Hide resolved
}

void global_setup() {
static sycl::queue get_queue(const std::string& device_selector) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cpp/oneapi/dal/test/engine/common.hpp Outdated Show resolved Hide resolved
cpp/oneapi/dal/test/engine/dataframe_common.hpp Outdated Show resolved Hide resolved
cpp/oneapi/dal/test/engine/dataframe_common.hpp Outdated Show resolved Hide resolved
cpp/oneapi/dal/test/engine/gtest_main.cpp Show resolved Hide resolved
cpp/oneapi/dal/test/engine/macro.hpp Show resolved Hide resolved
cpp/oneapi/dal/test/engine/math.hpp Show resolved Hide resolved
cpp/oneapi/dal/test/engine/mocks.hpp Outdated Show resolved Hide resolved
Copy link
Contributor

@michael-smirnov michael-smirnov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mkl and linalg folders reviewed

cpp/oneapi/dal/test/engine/linalg/dot.hpp Outdated Show resolved Hide resolved
cpp/oneapi/dal/test/engine/linalg/dot.hpp Show resolved Hide resolved
cpp/oneapi/dal/test/engine/linalg/io.hpp Outdated Show resolved Hide resolved
cpp/oneapi/dal/test/engine/linalg/loops.hpp Show resolved Hide resolved
cpp/oneapi/dal/test/engine/mkl/blas.hpp Show resolved Hide resolved
@rlnx
Copy link
Contributor Author

rlnx commented Jan 27, 2021

/intelci: run

cpp/oneapi/dal/algo/pca/detail/train_ops.hpp Show resolved Hide resolved
cpp/oneapi/dal/algo/pca/test/badarg.cpp Show resolved Hide resolved
static table_id homogen() {
static_assert(dal::detail::is_floating_point<Float>());
if constexpr (std::is_same_v<Float, float>) {
return table_id{ table_kind::homogen, table_float_type::f32 };
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I expect table::kind() and te::table_kind would diverge. For example, we could create homogen_row_major or homogen_column_major or custom table type that defined in test::engine (e.g. mock).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Arguable, but Ok, let's keep this version for now. This is probably the indicator that table::kind is useless

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

table::kind helps you to determine type of table at runtime, this is the main use case we discussed.

@rlnx rlnx merged commit fe2f4fb into uxlfoundation:master Jan 28, 2021
@rlnx rlnx deleted the test-engine branch March 18, 2021 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
oneAPI Issue/PR related to oneAPI part
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants