-
Notifications
You must be signed in to change notification settings - Fork 220
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
feature: enabling oneDPL and sort primitive refactoring #3046
Open
Alexandr-Solovev
wants to merge
26
commits into
uxlfoundation:main
Choose a base branch
from
Alexandr-Solovev:dev/asolovev_radix_sort_opt
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.
Open
Changes from 15 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
65d9322
init adding dpl
Alexandr-Solovev f8028b7
fixes for dpl
Alexandr-Solovev 0b553e8
minor fix
Alexandr-Solovev 2a91928
minor fix
Alexandr-Solovev ab367c0
minor fix for dpl from toolkit
Alexandr-Solovev e053cdf
minor fix for script
Alexandr-Solovev 3f1a6fe
minor fixes
Alexandr-Solovev 700cd10
minor fix
Alexandr-Solovev 809760f
minor fix
Alexandr-Solovev d01ea31
minor fix for dpl
Alexandr-Solovev 064bb12
fix correct link
Alexandr-Solovev 6e3587d
minor fixes
Alexandr-Solovev 0d9edd6
Merge branch 'uxlfoundation:main' into dev/asolovev_radix_sort_opt
Alexandr-Solovev a60eb07
minor fix
Alexandr-Solovev 16c8f6c
minor fix
Alexandr-Solovev 91410dc
Merge branch 'uxlfoundation:main' into dev/asolovev_radix_sort_opt
Alexandr-Solovev 8fd11bb
fixes
Alexandr-Solovev bf9d31f
fixes for memory
Alexandr-Solovev 4575642
reduce memory usage
Alexandr-Solovev 16b1ca5
optimizations
Alexandr-Solovev 09995cf
fixes for tree_order
Alexandr-Solovev 0ecfd35
initial internal dispatcher
Alexandr-Solovev 94b260b
fixes
Alexandr-Solovev 5bdd54f
minor fixes
Alexandr-Solovev e7f4066
Merge branch 'main' into dev/asolovev_radix_sort_opt
Alexandr-Solovev aaa4546
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 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 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,31 @@ | ||
#!/bin/bash | ||
#=============================================================================== | ||
# 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. | ||
#=============================================================================== | ||
|
||
URL=$1 | ||
|
||
# Download the installation script | ||
curl --output installer.sh --url "$URL" --retry 5 --retry-delay 5 | ||
chmod +x installer.sh | ||
|
||
# Execute the installation script | ||
sudo sh installer.sh -a --silent --eula accept | ||
installer_exit_code=$? | ||
|
||
# Clean up | ||
rm -f installer.sh | ||
|
||
exit $installer_exit_code |
This file contains 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 | ||||
---|---|---|---|---|---|---|
|
@@ -23,6 +23,7 @@ Required Software: | |||||
* BLAS and LAPACK libraries - both provided by oneMKL | ||||||
* Python version 3.9 or higher | ||||||
* TBB library (repository contains script to download it) | ||||||
* oneDPL library | ||||||
* Microsoft Visual Studio\* (Windows\* only) | ||||||
* [MSYS2](http://msys2.github.io) (Windows\* only) | ||||||
* `make` and `dos2unix` tools; install these packages using MSYS2 on Windows\* as follows: | ||||||
|
@@ -113,9 +114,25 @@ is available as an alternative to the manual setup. | |||||
|
||||||
./dev/download_tbb.sh | ||||||
|
||||||
6. Download and install Python (version 3.9 or higher). | ||||||
6. Set up Intel(R) Threading Building Blocks (Intel(R) TBB): | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
7. Build oneDAL via command-line interface. Choose the appropriate commands based on the interface, platform, and the compiler you use. Interface and platform are required arguments of makefile while others are optional. Below you can find the set of examples for building oneDAL. You may use a combination of them to get the desired build configuration: | ||||||
_Note: if you used the general oneAPI setvars script from a Base Toolkit installation, this step will not be necessary as oneDPL will already have been set up._ | ||||||
|
||||||
Download and install [Intel(R) oneDPL](https://www.intel.com/content/www/us/en/developer/tools/oneapi/dpc-library.html). | ||||||
Set the environment variables for for Intel(R) oneDPL. For example: | ||||||
|
||||||
- oneDPL (Windows\*): | ||||||
|
||||||
call "C:\Program Files (x86)\Intel\oneAPI\dpl\latest\env\vars.bat" intel64 | ||||||
|
||||||
- oneDPL (Linux\*): | ||||||
|
||||||
source /opt/intel/oneapi/dpl/latest/env/vars.sh intel64 | ||||||
|
||||||
|
||||||
7. Download and install Python (version 3.9 or higher). | ||||||
|
||||||
8. Build oneDAL via command-line interface. Choose the appropriate commands based on the interface, platform, and the compiler you use. Interface and platform are required arguments of makefile while others are optional. Below you can find the set of examples for building oneDAL. You may use a combination of them to get the desired build configuration: | ||||||
|
||||||
- DAAL interfaces on **Linux\*** using **Intel(R) C++ Compiler**: | ||||||
|
||||||
|
This file contains 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 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 |
---|---|---|
|
@@ -31,6 +31,7 @@ dal_module( | |
], | ||
dpc_deps = [ | ||
"@mkl//:mkl_dpc", | ||
"@dpl//:headers", | ||
], | ||
) | ||
|
||
|
This file contains 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 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 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 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.
@Alexandr-Solovev Please remember to update also the conda instructions that appear towards the end of this file.
The package name for conda should be
onedpl-devel
, and it needs to update the list of environment variables to addDPL_ROOT
.