-
Notifications
You must be signed in to change notification settings - Fork 225
enh: add cpu distributed support #3420
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
Alexandr-Solovev
merged 46 commits into
uxlfoundation:main
from
Alexandr-Solovev:dev/asolovev_spmd_cpu
Dec 4, 2025
Merged
Changes from 38 commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
2433ebc
fixes
Alexandr-Solovev a70133b
Merge branch 'main' into dev/asolovev_spmd_cpu
Alexandr-Solovev 587e56a
fixes
Alexandr-Solovev 18de8a2
fixes
Alexandr-Solovev d73e127
Merge branch 'main' into dev/asolovev_spmd_cpu
Alexandr-Solovev 686c39e
minor fix
Alexandr-Solovev cd72243
fixes
Alexandr-Solovev cb98883
fixes
Alexandr-Solovev faad3eb
Merge branch 'main' into dev/asolovev_spmd_cpu
Alexandr-Solovev c936caf
fixes
Alexandr-Solovev 74dadc1
fixes
Alexandr-Solovev 3b9c2d4
fixes
Alexandr-Solovev b7720f2
Merge branch 'main' into dev/asolovev_spmd_cpu
Alexandr-Solovev 12dec1e
fixes
Alexandr-Solovev 53371e3
fixes
Alexandr-Solovev 36d559f
fixes
Alexandr-Solovev 04bccfa
Merge branch 'main' into dev/asolovev_spmd_cpu
Alexandr-Solovev 0691ded
fixes
Alexandr-Solovev d3e1dc0
fixes
Alexandr-Solovev 3b1023d
minor fixes
Alexandr-Solovev c5d27f3
minor fix
Alexandr-Solovev d540617
Merge branch 'main' into dev/asolovev_spmd_cpu
Alexandr-Solovev 61121e6
Merge branch 'main' into dev/asolovev_spmd_cpu
Alexandr-Solovev ada55bd
test: add run_samples in conda-recipe
Alexandr-Solovev aa14a37
fixes
Alexandr-Solovev 192fea5
fixes
Alexandr-Solovev b248f7d
more test
Alexandr-Solovev eca8e3a
Merge branch 'uxlfoundation:main' into dev/asolovev_spmd_cpu
Alexandr-Solovev 3e68566
fixes
Alexandr-Solovev fa514f6
fixes
Alexandr-Solovev de3e143
fixes
Alexandr-Solovev baafc9a
fixes
Alexandr-Solovev fc252e7
fixes
Alexandr-Solovev 0dabad2
Merge branch 'main' into dev/asolovev_spmd_cpu
Alexandr-Solovev 6e4f3f8
fixes
Alexandr-Solovev 2197800
fixes
Alexandr-Solovev 4ad6339
docs update
Alexandr-Solovev 3ea4eb7
minor update
Alexandr-Solovev 22517dc
fixes
Alexandr-Solovev e8aae0c
fixes
Alexandr-Solovev 1ed1f7f
Merge branch 'main' into dev/asolovev_spmd_cpu
Alexandr-Solovev 00bfc1b
Merge branch 'main' into dev/asolovev_spmd_cpu
Alexandr-Solovev 729af95
fixes
Alexandr-Solovev 3f82f6a
fixes
Alexandr-Solovev d191a04
Merge branch 'main' into dev/asolovev_spmd_cpu
Alexandr-Solovev d0dcfbc
docs fixes
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
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
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,47 @@ | ||
| #=============================================================================== | ||
| # Copyright contributors to the oneDAL project | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
| #=============================================================================== | ||
|
|
||
| cmake_minimum_required(VERSION 3.16) | ||
|
|
||
| set(ONEDAL_INTERFACE yes) | ||
| set(ONEDAL_DISTRIBUTED yes) | ||
| set(ONEDAL_USE_CCL no) | ||
| set(ONEDAL_DISTRIBUTED_CPU yes) | ||
| set(MPIEXEC_MAX_NUMPROCS "4" CACHE STRING "Number of processes") | ||
david-cortes-intel marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| set(MPIEXEC_NUMPROCS_PER_NODE "4" CACHE STRING "Number of processes per node") | ||
|
|
||
|
|
||
| # Add cmake scripts and modules to CMake search path | ||
| list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../../../cmake/") | ||
| include(setup_samples) | ||
|
|
||
| project(oneapi_dpc_samples) | ||
|
|
||
| find_package(oneDAL REQUIRED) | ||
|
|
||
| find_dependencies() | ||
| set_link_type() | ||
| set_common_compiler_options() | ||
|
|
||
| include_directories(sources) | ||
|
|
||
| # Initialize the EXCLUDE_LIST variable | ||
| set(EXCLUDE_LIST "sources/*.hpp") | ||
|
|
||
| # Define variable to specify the samples or directories to include or exclude | ||
| option(SAMPLES_LIST "") | ||
|
|
||
| generate_samples("${EXCLUDE_LIST}" "${SAMPLES_LIST}") | ||
25 changes: 25 additions & 0 deletions
25
samples/oneapi/cpp/ccl/data/linear_regression_test_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,25 @@ | ||
| 4.7408e+00,-4.3203e+00,2.0963e-01,-1.5789e+00, | ||
Alexandr-Solovev marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| 3.2199e+00,-4.1992e+00,1.5187e+00,2.4452e+00, | ||
| -2.1517e+00,3.2832e+00,4.0083e+00,4.3406e+00, | ||
| 4.6496e+00,-1.4519e+00,-3.5445e+00,1.5077e+00, | ||
| 3.7411e+00,1.9831e+00,-4.6572e+00,-2.4883e-01, | ||
| -3.7311e+00,-4.7193e+00,4.6284e+00,-3.7915e+00, | ||
| -7.1414e-01,1.0602e+00,-3.6055e+00,5.8303e-01, | ||
| -1.5016e+00,1.9514e+00,-3.5752e+00,2.9763e+00, | ||
| -8.7124e-01,2.8677e+00,-4.8682e-01,7.6945e-01, | ||
| -3.1116e-02,9.7549e-02,3.6944e+00,-2.1663e+00, | ||
| -1.3821e+00,-4.0194e+00,-3.5427e+00,-2.0139e+00, | ||
| -4.1779e+00,8.3570e-01,-3.2471e+00,2.3163e+00, | ||
| -4.1854e+00,-8.7692e-02,4.4636e+00,-4.1856e+00, | ||
| 1.2469e+00,1.3116e+00,-2.3832e+00,3.4908e+00, | ||
| 4.8300e+00,-2.8320e+00,3.6545e+00,5.5179e-01, | ||
| 3.5933e+00,-3.2084e-01,-1.8436e+00,-2.3313e+00, | ||
| -1.9571e+00,-2.5447e+00,3.8619e+00,4.1992e+00, | ||
| -4.0046e+00,3.5057e+00,-1.3584e-01,2.6378e+00, | ||
| -4.5083e+00,-1.9631e+00,-3.8710e+00,-1.0727e+00, | ||
| 2.6675e+00,-1.8064e+00,2.0341e+00,9.4878e-01, | ||
| -4.7467e+00,-2.8794e+00,-2.7395e-01,-4.5898e+00, | ||
| -2.6709e+00,3.9516e+00,3.7859e+00,-1.5429e+00, | ||
| 1.6294e+00,-1.5427e+00,-1.8827e+00,1.1832e+00, | ||
| 3.3005e+00,-3.3550e+00,2.8902e+00,-4.4256e+00, | ||
| -2.8893e+00,4.2992e+00,-2.6801e+00,1.0146e+00, | ||
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.
Uh oh!
There was an error while loading. Please reload this page.