-
Notifications
You must be signed in to change notification settings - Fork 221
add bazel support for daal examples #3235
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
Draft
Alexandr-Solovev
wants to merge
20
commits into
uxlfoundation:main
Choose a base branch
from
Alexandr-Solovev:dev/asolovev_add_bazel_support_daal_examples
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
cd12046
init fix
Alexandr-Solovev cfb475a
minor fix
Alexandr-Solovev 1b8afd5
Merge branch 'uxlfoundation:main' into dev/asolovev_add_bazel_support…
Alexandr-Solovev 43bfe9c
Merge branch 'main' into dev/asolovev_add_bazel_support_daal_examples
Alexandr-Solovev d1cd1fc
new algos support
Alexandr-Solovev cbf9d12
fix for headers and add in ci
Alexandr-Solovev daf5157
minor fix
Alexandr-Solovev ed0fe8e
fix for ci
Alexandr-Solovev 617a699
minor fix
Alexandr-Solovev 4484370
disable unnecessary ci and bazel tests
Alexandr-Solovev 821e21d
minor fixes
Alexandr-Solovev 97328fc
fix thread pinning
Alexandr-Solovev 077fb06
fix
Alexandr-Solovev ea4e7e6
fix for elastic_net
Alexandr-Solovev 592470d
fix for gbt
Alexandr-Solovev 41bfc4a
fix for examples
Alexandr-Solovev b989880
fix
Alexandr-Solovev 796e5da
fixes
Alexandr-Solovev ccab2d0
minor fix
Alexandr-Solovev e135af8
fix
Alexandr-Solovev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package(default_visibility = ["//visibility:public"]) | ||
|
||
filegroup( | ||
name = "data", | ||
srcs = glob(["data/**/*.csv"]), | ||
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,251 @@ | ||
load("@onedal//dev/bazel:dal.bzl", | ||
"dal_module", | ||
"dal_example_suite", | ||
"dal_algo_example_suite", | ||
) | ||
|
||
dal_module( | ||
name = "example_util", | ||
hdrs = glob(["source/utils/*.h"]), | ||
includes = [ "source/utils" ], | ||
) | ||
|
||
_TEST_DEPS = [ | ||
":example_util", "@opencl//:opencl_binary", | ||
] | ||
|
||
_DATA_DEPS = [ | ||
"@onedal//examples/daal:data", | ||
] | ||
|
||
# dal_example_suite( | ||
# name = "graph", | ||
# compile_as = [ "c++" ], | ||
# srcs = glob(["source/graph/*.cpp"]), | ||
# dal_deps = [ | ||
# "@onedal//cpp/oneapi/dal/graph", | ||
# ], | ||
# data = _DATA_DEPS, | ||
# extra_deps = _TEST_DEPS, | ||
# ) | ||
|
||
# dal_example_suite( | ||
# name = "table", | ||
# compile_as = [ "c++" ], | ||
# srcs = glob(["source/table/*.cpp"]), | ||
# dal_deps = [ | ||
# "@onedal//cpp/oneapi/dal/table", | ||
# ], | ||
# data = _DATA_DEPS, | ||
# extra_deps = _TEST_DEPS, | ||
# ) | ||
|
||
# dal_example_suite( | ||
# name = "kmeans_init", | ||
# compile_as = [ "c++" ], | ||
# srcs = glob(["source/kmeans_init/*.cpp"]), | ||
# dal_deps = [ | ||
# "@onedal//cpp/oneapi/dal/algo:kmeans", | ||
# "@onedal//cpp/oneapi/dal/algo:kmeans_init", | ||
# ], | ||
# data = _DATA_DEPS, | ||
# extra_deps = _TEST_DEPS, | ||
# ) | ||
|
||
# dal_example_suite( | ||
# name = "misc", | ||
# compile_as = [ "c++" ], | ||
# srcs = glob(["source/misc/*.cpp"]), | ||
# dal_deps = [ | ||
# "@onedal//cpp/oneapi/dal:io", | ||
# ], | ||
# data = _DATA_DEPS, | ||
# extra_deps = _TEST_DEPS, | ||
# ) | ||
|
||
#"@onedal//cpp/daal/src/algorithms/dtrees/forest:kernel", | ||
dal_example_suite( | ||
name = "association_rules", | ||
compile_as = [ "c++" ], | ||
srcs = glob(["source/association_rules/*.cpp"]), | ||
dal_deps = [ | ||
"@onedal//cpp/daal/src/algorithms/assocrules:kernel", | ||
], | ||
data = _DATA_DEPS, | ||
extra_deps = _TEST_DEPS + [ | ||
"@tbb//:tbb", | ||
], | ||
) | ||
|
||
dal_example_suite( | ||
name = "boosting", | ||
compile_as = [ "c++" ], | ||
srcs = glob(["source/boosting/*.cpp"]), | ||
dal_deps = [ | ||
"@onedal//cpp/daal/src/algorithms/adaboost:kernel", | ||
"@onedal//cpp/daal/src/algorithms/brownboost:kernel", | ||
"@onedal//cpp/daal/src/algorithms/logitboost:kernel", | ||
], | ||
data = _DATA_DEPS, | ||
extra_deps = _TEST_DEPS + [ | ||
"@tbb//:tbb", | ||
], | ||
) | ||
|
||
dal_example_suite( | ||
name = "cholesky", | ||
compile_as = [ "c++" ], | ||
srcs = glob(["source/cholesky/*.cpp"]), | ||
dal_deps = [ | ||
"@onedal//cpp/daal/src/algorithms/cholesky:kernel", | ||
], | ||
data = _DATA_DEPS, | ||
extra_deps = _TEST_DEPS + [ | ||
"@tbb//:tbb", | ||
], | ||
) | ||
|
||
dal_example_suite( | ||
name = "decision_tree", | ||
compile_as = [ "c++" ], | ||
srcs = glob(["source/decision_tree/*.cpp"]), | ||
dal_deps = [ | ||
"@onedal//cpp/daal/src/algorithms/decision_tree:kernel", | ||
], | ||
data = _DATA_DEPS, | ||
extra_deps = _TEST_DEPS + [ | ||
"@tbb//:tbb", | ||
], | ||
) | ||
|
||
dal_example_suite( | ||
name = "distance", | ||
compile_as = [ "c++" ], | ||
srcs = glob(["source/distance/*.cpp"]), | ||
dal_deps = [ | ||
"@onedal//cpp/daal/src/algorithms/cordistance:kernel", | ||
"@onedal//cpp/daal/src/algorithms/cosdistance:kernel", | ||
], | ||
data = _DATA_DEPS, | ||
extra_deps = _TEST_DEPS + [ | ||
"@tbb//:tbb", | ||
], | ||
) | ||
|
||
dal_example_suite( | ||
name = "distributions", | ||
compile_as = [ "c++" ], | ||
srcs = glob(["source/distributions/*.cpp"]), | ||
dal_deps = [ | ||
"@onedal//cpp/daal/src/algorithms/distributions:kernel", | ||
], | ||
data = _DATA_DEPS, | ||
extra_deps = _TEST_DEPS + [ | ||
"@tbb//:tbb", | ||
], | ||
) | ||
|
||
# dal_example_suite( | ||
# name = "elastic_net", | ||
# compile_as = [ "c++" ], | ||
# srcs = glob(["source/elastic_net/*.cpp"]), | ||
# dal_deps = [ | ||
# "@onedal//cpp/daal/src/algorithms/elastic_net:kernel", | ||
# "@onedal//cpp/daal/src/algorithms/optimization_solver:kernel", | ||
# ], | ||
# data = _DATA_DEPS, | ||
# extra_deps = _TEST_DEPS + [ | ||
# "@tbb//:tbb", | ||
# ], | ||
# ) | ||
|
||
# dal_example_suite( | ||
# name = "em", | ||
# compile_as = [ "c++" ], | ||
# srcs = glob(["source/em/*.cpp"]), | ||
# dal_deps = [ | ||
# "@onedal//cpp/daal/src/algorithms/em:kernel", | ||
# ], | ||
# data = _DATA_DEPS, | ||
# extra_deps = _TEST_DEPS + [ | ||
# "@tbb//:tbb", | ||
# ], | ||
# ) | ||
|
||
# dal_example_suite( | ||
# name = "enable_thread_pinning", | ||
# compile_as = [ "c++" ], | ||
# srcs = glob(["source/enable_thread_pinning/*.cpp"]), | ||
# dal_deps = [ | ||
# "@onedal//cpp/daal/src/algorithms/kmeans:kernel", | ||
# ], | ||
# data = _DATA_DEPS, | ||
# extra_deps = _TEST_DEPS + [ | ||
# "@tbb//:tbb", | ||
# ], | ||
# ) | ||
|
||
# dal_example_suite( | ||
# name = "gradient_boosted_trees", | ||
# compile_as = [ "c++" ], | ||
# srcs = glob(["source/gradient_boosted_trees/*.cpp"]), | ||
# dal_deps = [ | ||
# "@onedal//cpp/daal/src/algorithms/dtrees:kernel", | ||
# ], | ||
# data = _DATA_DEPS, | ||
# extra_deps = _TEST_DEPS + [ | ||
# "@tbb//:tbb", | ||
# ], | ||
# ) | ||
|
||
dal_example_suite( | ||
name = "implicit_als", | ||
compile_as = [ "c++" ], | ||
srcs = glob(["source/implicit_als/*.cpp"]), | ||
dal_deps = [ | ||
"@onedal//cpp/daal/src/algorithms/implicit_als:kernel", | ||
], | ||
data = _DATA_DEPS, | ||
extra_deps = _TEST_DEPS + [ | ||
"@tbb//:tbb", | ||
], | ||
) | ||
|
||
dal_example_suite( | ||
name = "k_nearest_neighbors", | ||
compile_as = [ "c++" ], | ||
srcs = glob(["source/k_nearest_neighbors/*.cpp"]), | ||
dal_deps = [ | ||
"@onedal//cpp/daal/src/algorithms/k_nearest_neighbors:kernel", | ||
], | ||
data = _DATA_DEPS, | ||
extra_deps = _TEST_DEPS + [ | ||
"@tbb//:tbb", | ||
], | ||
) | ||
|
||
dal_algo_example_suite( | ||
algos = [ | ||
"covariance", | ||
# "datasource", | ||
"dbscan", | ||
"decision_forest", | ||
"kmeans", | ||
# "k_nearest_neighbors", | ||
# "kernel_function", | ||
"linear_regression", | ||
# "louvain", | ||
# "objective_function", | ||
# "pca", | ||
# "polynomial_kernel", | ||
# "rbf_kernel", | ||
# "shortest_paths", | ||
# "sigmoid_kernel", | ||
# "subgraph_isomorphism", | ||
# "svm", | ||
# "triangle_counting", | ||
], | ||
compile_as = [ "c++" ], | ||
data = _DATA_DEPS, | ||
extra_deps = _TEST_DEPS, | ||
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was this meant to be left in?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, it will be removed, now just for debug purposes