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

[WIP] oneMKL migration: Fix for DLL loading issue on Windows #2902

Closed
wants to merge 111 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
111 commits
Select commit Hold shift + click to select a range
1937138
init onemkl
Alexandr-Solovev Aug 1, 2024
1cd9f18
fix WORKSPACE for big MKL
Alexandr-Solovev Aug 7, 2024
836b5c3
minor fix
Alexandr-Solovev Aug 19, 2024
c32382e
minor fix
Alexandr-Solovev Aug 19, 2024
00bb289
Merge branch 'oneapi-src:main' into dev/asolovev_onemkl_enabling_clear
Alexandr-Solovev Aug 19, 2024
ecc20a0
fixes for public ci
Alexandr-Solovev Aug 21, 2024
8472acb
fixes for win + ci
Alexandr-Solovev Aug 21, 2024
2ea8979
minor fix for scripts
Alexandr-Solovev Aug 21, 2024
40366b3
fixes
Alexandr-Solovev Aug 21, 2024
a6220db
fixes
Alexandr-Solovev Aug 21, 2024
b4babe5
minor updates + kmeans prints
Alexandr-Solovev Aug 21, 2024
43aae73
minor fixes
Alexandr-Solovev Aug 22, 2024
ba80c24
fix threading functions
Alexandr-Solovev Aug 22, 2024
2a08eab
fix for threading
Alexandr-Solovev Aug 22, 2024
1ad623f
minor restore
Alexandr-Solovev Aug 23, 2024
fc4f2af
fixes for ci and removing macos
Alexandr-Solovev Aug 23, 2024
7ddd2d1
minor fix
Alexandr-Solovev Aug 23, 2024
32fd9cf
fixes for makefile
Alexandr-Solovev Aug 26, 2024
060e241
add daal examples in bazel
Alexandr-Solovev Aug 26, 2024
a8d571f
fix for rng
Alexandr-Solovev Aug 26, 2024
9963630
remove bazel deps
Alexandr-Solovev Aug 26, 2024
91ef4cf
adding seq gemm
Alexandr-Solovev Aug 26, 2024
9a28e33
minor fixes for seq blas
Alexandr-Solovev Aug 26, 2024
530a7ae
fixes
Alexandr-Solovev Aug 27, 2024
b00ecc9
minor fix for rbf
Alexandr-Solovev Aug 27, 2024
8df5ba3
fixes for makefile
Alexandr-Solovev Aug 27, 2024
ac69218
fixes
Alexandr-Solovev Aug 27, 2024
bc2a3aa
fixes
Alexandr-Solovev Aug 27, 2024
1bc4221
fixes for rbf
Alexandr-Solovev Aug 27, 2024
d4a2b2b
fixes for win
Alexandr-Solovev Aug 27, 2024
3ffeb9f
Merge branch 'oneapi-src:main' into dev/asolovev_onemkl_enabling_clear
Alexandr-Solovev Aug 27, 2024
44ca8ec
fix comments
Alexandr-Solovev Aug 27, 2024
90b6b72
fixes
Alexandr-Solovev Aug 28, 2024
cf3b955
only windows
Alexandr-Solovev Aug 28, 2024
4460b0c
minor fix
Alexandr-Solovev Aug 28, 2024
bf3d167
test
Alexandr-Solovev Aug 28, 2024
1fe29e6
test toolkit
Alexandr-Solovev Aug 28, 2024
4b4329c
fix for install in makevc
Alexandr-Solovev Aug 28, 2024
1621fa2
fixes for win
Alexandr-Solovev Aug 28, 2024
ada5b2d
updating toolkit downloading
Alexandr-Solovev Aug 28, 2024
51584b8
fixes
Alexandr-Solovev Aug 28, 2024
57bca4a
fixes for tbb in win ci
Alexandr-Solovev Aug 28, 2024
a3282ed
fix for gpufpk line
Alexandr-Solovev Aug 28, 2024
293dd0f
fixes for env
Alexandr-Solovev Aug 28, 2024
a7d311d
fixes for docker
Alexandr-Solovev Aug 28, 2024
b9e59b1
path fixes
Alexandr-Solovev Aug 28, 2024
41deae8
fix
Alexandr-Solovev Aug 28, 2024
f08ad52
test wo wildcard
Alexandr-Solovev Aug 28, 2024
9655857
fixes for win
Alexandr-Solovev Aug 29, 2024
1f6267d
update path for toolkit
Alexandr-Solovev Aug 29, 2024
d13d9ab
fixes for win
Alexandr-Solovev Aug 29, 2024
2ae9cc9
fixes
Alexandr-Solovev Aug 29, 2024
8c81c16
fixes
Alexandr-Solovev Aug 29, 2024
60bf700
fixes
Alexandr-Solovev Aug 29, 2024
89d06d1
remove subst
Alexandr-Solovev Aug 29, 2024
166548a
fixes
Alexandr-Solovev Aug 29, 2024
0b486f6
minor fix
Alexandr-Solovev Aug 29, 2024
527a761
fixes for macros
Alexandr-Solovev Aug 29, 2024
072d0b4
fixes in make file for win
Alexandr-Solovev Aug 29, 2024
d080fdb
fix for docker
Alexandr-Solovev Aug 29, 2024
2bdd513
minor fixes
Alexandr-Solovev Aug 29, 2024
bcf7d8b
fixes naming
Alexandr-Solovev Aug 29, 2024
093db54
fixes for makefile
Alexandr-Solovev Aug 30, 2024
a46b852
minor fixes
Alexandr-Solovev Aug 30, 2024
40e0641
fixes
Alexandr-Solovev Aug 30, 2024
33c8167
Merge branch 'main' into dev/asolovev_onemkl_enabling_clear
Alexandr-Solovev Aug 30, 2024
28d27ff
minor fixes
Alexandr-Solovev Aug 30, 2024
ccec31d
fixes for exports
Alexandr-Solovev Aug 30, 2024
9f71331
minor fix
Alexandr-Solovev Aug 30, 2024
8e2af05
fixes
Alexandr-Solovev Aug 30, 2024
596caea
minor fixes for win
Alexandr-Solovev Sep 2, 2024
15d7fea
minor fixes
Alexandr-Solovev Sep 2, 2024
f9b8d94
fixes
Alexandr-Solovev Sep 2, 2024
01ecb0f
fix for debug flag
Alexandr-Solovev Sep 2, 2024
b314d18
Merge branch 'main' into dev/asolovev_onemkl_enabling_clear
Alexandr-Solovev Sep 2, 2024
9b48109
fixes for win
Alexandr-Solovev Sep 2, 2024
6ef84dd
fixes for ci
Alexandr-Solovev Sep 2, 2024
3f68303
minor fixes
Alexandr-Solovev Sep 3, 2024
6042c3d
minor upd
Alexandr-Solovev Sep 3, 2024
da882ac
minor fix
Alexandr-Solovev Sep 3, 2024
d709ed8
minor fixes
Alexandr-Solovev Sep 3, 2024
69392e3
fixes for onemkl win
Alexandr-Solovev Sep 3, 2024
9170b7f
fixes for win
Alexandr-Solovev Sep 4, 2024
414dd19
minor check
Alexandr-Solovev Sep 4, 2024
910180d
minor fixes
Alexandr-Solovev Sep 4, 2024
e161b0c
fixes
Alexandr-Solovev Sep 4, 2024
d4b2e89
Merge branch 'oneapi-src:main' into dev/asolovev_onemkl_enabling_clear
Alexandr-Solovev Sep 4, 2024
2e5e9de
fixes for test
Alexandr-Solovev Sep 4, 2024
0ecf52b
fixes for ci
Alexandr-Solovev Sep 4, 2024
2c55ae1
fixes for ci and make build
Alexandr-Solovev Sep 4, 2024
c84eef3
minor fixes
Alexandr-Solovev Sep 4, 2024
5217992
fixes for win
Alexandr-Solovev Sep 5, 2024
a0abb27
Merge branch 'oneapi-src:main' into dev/asolovev_onemkl_enabling_clear
Alexandr-Solovev Sep 5, 2024
1aacc2f
minor checks for win
Alexandr-Solovev Sep 5, 2024
503caea
minor fix
Alexandr-Solovev Sep 5, 2024
92ee88f
fixes for daal_export
Alexandr-Solovev Sep 5, 2024
0aed02e
minor fix
Alexandr-Solovev Sep 5, 2024
83e43a1
enable all public ci steps + disable integration in vs
Alexandr-Solovev Sep 5, 2024
7bb26d2
Merge branch 'oneapi-src:main' into dev/asolovev_onemkl_enabling_clear
Alexandr-Solovev Sep 5, 2024
e180df1
fixes
Alexandr-Solovev Sep 6, 2024
ebbe477
Experiment: remove mkl_tbb_thread library from onedal_core link line
Vika-F Sep 17, 2024
ceffb02
Remove mkl_tbb_thread library from onedal_thread link line; add tbb12…
Vika-F Sep 19, 2024
29b3cd5
Fix for the previous commit
Vika-F Sep 19, 2024
70a48c7
Fix for the previous commit
Vika-F Sep 19, 2024
690f119
Fix for the previous commit
Vika-F Sep 19, 2024
9aabb27
Fix for the previous commit
Vika-F Sep 19, 2024
1a718ee
Fix for the previous commit
Vika-F Sep 19, 2024
b868032
Add copying tbb into daal/latest/redist/intel64 on Win; Remove tbb12.…
Vika-F Sep 20, 2024
788cee7
Remove tbb*.dll files redistribution along with onedal DLLs
Vika-F Sep 20, 2024
9cca77a
Implement serv_get_ht, serv_get_ncpus, serv_get_ncorespercpu function…
Vika-F Sep 23, 2024
ba40d52
clang-format
Vika-F Sep 23, 2024
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 .ci/env/apt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function install_dpcpp {
}

function install_mkl {
sudo apt-get install intel-oneapi-mkl-devel
sudo apt-get install -y intel-oneapi-mkl-devel
}

function install_clang-format {
Expand Down
85 changes: 28 additions & 57 deletions .ci/pipeline/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ variables:
TBB_VERSION : 'v2021.10.0'
VM_IMAGE : 'ubuntu-22.04'
SYSROOT_OS: 'jammy'
WINDOWS_BASEKIT_URL: 'https://registrationcenter-download.intel.com/akdlm/IRC_NAS/d91caaa0-7306-46ea-a519-79a0423e1903/w_BaseKit_p_2024.2.1.101_offline.exe'
WINDOWS_DPCPP_COMPONENTS: 'intel.oneapi.win.cpp-dpcpp-common:intel.oneapi.win.mkl.devel:intel.oneapi.win.tbb.devel'

jobs:
- job: 'FormatterChecks'
Expand Down Expand Up @@ -58,6 +60,9 @@ jobs:
- script: |
.ci/env/apt.sh dev-base
displayName: 'apt-get and conda install'
- script: |
.ci/env/apt.sh mkl
displayName: 'mkl installation'
- script: |
.ci/scripts/describe_system.sh
displayName: 'System info'
Expand Down Expand Up @@ -415,6 +420,9 @@ jobs:
- script: |
.ci/env/apt.sh dpcpp
displayName: 'dpcpp installation'
- script: |
.ci/env/apt.sh mkl
displayName: 'mkl installation'
- script: |
source /opt/intel/oneapi/compiler/latest/env/vars.sh
.ci/scripts/describe_system.sh
Expand All @@ -435,14 +443,17 @@ jobs:
continueOnError: true
- script: |
source /opt/intel/oneapi/compiler/latest/env/vars.sh
source /opt/intel/oneapi/mkl/latest/env/vars.sh
.ci/scripts/test.sh --test-kind examples --build-dir $(release.dir) --compiler clang --interface daal/cpp --build-system cmake
displayName: 'daal/cpp examples'
- script: |
source /opt/intel/oneapi/compiler/latest/env/vars.sh
source /opt/intel/oneapi/mkl/latest/env/vars.sh
.ci/scripts/test.sh --test-kind examples --build-dir $(release.dir) --compiler clang --interface oneapi/cpp --build-system cmake
displayName: 'oneapi/cpp examples'
- script: |
source /opt/intel/oneapi/compiler/latest/env/vars.sh
source /opt/intel/oneapi/mkl/latest/env/vars.sh
.ci/scripts/test.sh --test-kind samples --build-dir $(release.dir) --compiler gnu --interface daal/cpp/mpi --conda-env ci-env --build-system cmake
displayName: 'daal/cpp/mpi samples'
- task: PublishPipelineArtifact@1
Expand Down Expand Up @@ -520,12 +531,15 @@ jobs:
--test_thread_mode=par
displayName: 'cpp-examples-thread-release-static'

- script: |
export DALROOT=`pwd`/bazel-bin/release/daal/latest
bazel test //examples/oneapi/cpp:all \
--test_link_mode=release_dynamic \
--test_thread_mode=par
displayName: 'cpp-examples-thread-release-dynamic'
# The issue that bazel doesnt link MKL libs via -Wl, --start-group..
# oneDAL make build pass this test
# TODO: add cycle linking in bazel
# - script: |
# export DALROOT=`pwd`/bazel-bin/release/daal/latest
# bazel test //examples/oneapi/cpp:all \
# --test_link_mode=release_dynamic \
# --test_thread_mode=par
# displayName: 'cpp-examples-thread-release-dynamic'

- script: |
bazel test //cpp/daal:tests
Expand Down Expand Up @@ -645,57 +659,6 @@ jobs:
displayName: 'Upload conformance tests artifacts'
continueOnError: true

- job: 'macOSMakeClang'
timeoutInMinutes: 0
variables:
release.dir: '__release_mac_clang'
platform.type : 'mac32e'
pool:
vmImage: 'macos-12'
steps:
- script: |
brew install dos2unix tree
conda create -n ci-env -q -y -c conda-forge python=3.10
source /usr/local/miniconda/etc/profile.d/conda.sh
conda activate ci-env
pip install -q cpufeature
displayName: 'brew and conda install'
- script: |
source /usr/local/miniconda/etc/profile.d/conda.sh
conda activate ci-env
.ci/scripts/describe_system.sh
displayName: 'System info'
- script: |
.ci/scripts/build.sh --compiler clang --target daal --optimizations "sse2 avx2" --conda-env ci-env
displayName: 'make daal'
- script: |
.ci/scripts/build.sh --compiler clang --target onedal_c --optimizations "sse2 avx2"
displayName: 'make onedal_c'
- task: PublishPipelineArtifact@1
inputs:
artifactName: '$(platform.type) build'
targetPath: '$(Build.Repository.LocalPath)/$(release.dir)'
displayName: 'Upload build artifacts'
continueOnError: true
- script: |
.ci/scripts/test.sh --test-kind examples --build-dir $(release.dir) --compiler clang --interface daal/cpp --build-system cmake
displayName: 'daal/cpp examples'
- script: |
.ci/scripts/test.sh --test-kind examples --build-dir $(release.dir) --compiler clang --interface oneapi/cpp --build-system cmake
displayName: 'oneapi/cpp examples'
- script: |
deploy/nuget/prepare_dal_nuget.sh --release-dir $(release.dir) --build-nupkg yes
tree -h -I include __nuget/inteldal*/
ls -lh __nuget/inteldal*.nupkg
displayName: 'nuget pkg'
- task: PublishPipelineArtifact@1
inputs:
artifactName: '$(platform.type) fail'
targetPath: '$(Build.Repository.LocalPath)/$(release.dir)'
displayName: 'Uploading on fail'
condition: failed()
continueOnError: true

- job: 'WindowsMakeVC'
timeoutInMinutes: 0
variables:
Expand All @@ -704,6 +667,8 @@ jobs:
pool:
vmImage: 'windows-2022'
steps:
- script: .ci/scripts/install_windows.bat $(WINDOWS_BASEKIT_URL) $(WINDOWS_DPCPP_COMPONENTS)
displayName: Install oneAPI Base Toolkit
- script: |
set PATH=C:\msys64\usr\bin;%PATH%
pip install cpufeature
Expand All @@ -714,9 +679,13 @@ jobs:
bash .ci/scripts/describe_system.sh
displayName: 'System info'
- script: |
call C:\temp\oneapi\setvars.bat --force
set MKL_FPK_GPU_VERSION_LINE=2024.0.0
.\.ci\scripts\build.bat daal vc avx2
displayName: 'make daal'
- script: |
call C:\temp\oneapi\setvars.bat --force
set MKL_FPK_GPU_VERSION_LINE=2024.0.0
.\.ci\scripts\build.bat onedal_c vc avx2
displayName: 'make onedal_c'
- task: PublishPipelineArtifact@1
Expand All @@ -726,10 +695,12 @@ jobs:
displayName: 'Upload build artifacts'
continueOnError: true
- script: |
call C:\temp\oneapi\setvars.bat --force
.\.ci\scripts\test.bat daal\cpp lib msvs cmake
.\.ci\scripts\test.bat daal\cpp dll msvs cmake
displayName: 'daal/cpp examples'
- script: |
call C:\temp\oneapi\setvars.bat --force
.\.ci\scripts\test.bat oneapi\cpp lib msvs cmake
.\.ci\scripts\test.bat oneapi\cpp dll msvs cmake
displayName: 'oneapi/cpp examples'
Expand Down
22 changes: 14 additions & 8 deletions .ci/scripts/build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,20 @@ set PATH=C:\msys64\usr\bin;%PATH%
echo pacman -S --noconfirm msys/make msys/dos2unix
pacman -S --noconfirm msys/make msys/dos2unix

echo call .ci\env\tbb.bat
if "%TBBROOT%"=="" if not exist .\__deps\tbb\win\tbb call .ci\env\tbb.bat || set errorcode=1

echo call .\dev\download_micromkl.bat
if "%MKLGPUFPKROOT%"=="" if not exist .\__deps\mklgpufpk\win call .\dev\download_micromkl.bat || set errorcode=1

echo call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall" x64
if "%VISUALSTUDIOVERSION%"=="" call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall" x64 || set errorcode=1
echo "%VISUALSTUDIOVERSION% HERE"

IF "%VS_VER%"=="2017_build_tools" (
@call "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvars64.bat"
echo "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvars64.bat"
) ELSE (
IF "%VS_VER%"=="2019_build_tools" (
@call "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvars64.bat"
echo "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvars64.bat"
) ELSE (
@call "C:\temp\oneapi\setvars-vcvarsall.bat" %VS_VER%
echo "C:\temp\oneapi\setvars-vcvarsall.bat" %VS_VER%
)
)

echo make %1 -j%NUMBER_OF_PROCESSORS% COMPILER=%2 PLAT=win32e REQCPU=%3
make %1 -j%NUMBER_OF_PROCESSORS% COMPILER=%2 PLAT=win32e REQCPU=%3 || set errorcode=1
Expand Down
3 changes: 1 addition & 2 deletions .ci/scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,7 @@ fi
#main actions
echo "Call env scripts"
if [ "${backend_config}" == "mkl" ]; then
echo "Sourcing MKL env"
"${ONEDAL_DIR}"/dev/download_micromkl.sh with_gpu="${with_gpu}"
source /opt/intel/oneapi/mkl/latest/env/vars.sh
elif [ "${backend_config}" == "ref" ] && [ ! -z "${BLAS_INSTALL_DIR}" ]; then
export OPENBLASROOT="${BLAS_INSTALL_DIR}"
elif [ "${backend_config}" == "ref" ]; then
Expand Down
31 changes: 31 additions & 0 deletions .ci/scripts/install_windows.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
@echo off
rem ============================================================================
rem Copyright 2024 Intel Corporation
rem
rem Licensed under the Apache License, Version 2.0 (the "License");
rem you may not use this file except in compliance with the License.
rem You may obtain a copy of the License at
rem
rem http://www.apache.org/licenses/LICENSE-2.0
rem
rem Unless required by applicable law or agreed to in writing, software
rem distributed under the License is distributed on an "AS IS" BASIS,
rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
rem See the License for the specific language governing permissions and
rem limitations under the License.
rem ============================================================================

set URL=%1
set COMPONENTS=%2

curl.exe --output %TEMP%\webimage.exe --url %URL% --retry 5 --retry-delay 5
start /b /wait %TEMP%\webimage.exe -s -x -f webimage_extracted --log extract.log
del %TEMP%\webimage.exe
if "%COMPONENTS%"=="" (
webimage_extracted\bootstrapper.exe -s --action install --eula=accept --install-dir=C:\temp\oneapi\ -p=NEED_VS2017_INTEGRATION=0 -p=NEED_VS2019_INTEGRATION=0 -p=NEED_VS2022_INTEGRATION=0 --log-dir=.
) else (
webimage_extracted\bootstrapper.exe -s --action install --components=%COMPONENTS% --eula=accept --install-dir=C:\temp\oneapi\ -p=NEED_VS2017_INTEGRATION=0 -p=NEED_VS2019_INTEGRATION=0 -p=NEED_VS2022_INTEGRATION=0 --log-dir=.
)
set installer_exit_code=%ERRORLEVEL%
rd /s/q "webimage_extracted"
exit /b %installer_exit_code%
16 changes: 14 additions & 2 deletions .ci/scripts/test.bat
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,20 @@ echo CPUCOUNT=%CPUCOUNT%
echo PATH=C:\msys64\usr\bin;%PATH%
set PATH=C:\msys64\usr\bin;%PATH%

echo call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall" x64
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall" x64 || set errorcode=1
echo "%VISUALSTUDIOVERSION% HERE"

IF "%VS_VER%"=="2017_build_tools" (
@call "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvars64.bat"
echo "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvars64.bat"
) ELSE (
IF "%VS_VER%"=="2019_build_tools" (
@call "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvars64.bat"
echo "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvars64.bat"
) ELSE (
@call "C:\temp\oneapi\setvars-vcvarsall.bat" %VS_VER%
echo "C:\temp\oneapi\setvars-vcvarsall.bat" %VS_VER%
)
)

echo call __release_win_vc\daal\latest\env\vars.bat
call __release_win_vc\daal\latest\env\vars.bat || set errorcode=1
Expand Down
14 changes: 8 additions & 6 deletions .github/workflows/nightly-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ on:
permissions:
contents: read

variables:
WINDOWS_BASEKIT_URL: 'https://registrationcenter-download.intel.com/akdlm/IRC_NAS/d91caaa0-7306-46ea-a519-79a0423e1903/w_BaseKit_p_2024.2.1.101_offline.exe'
WINDOWS_ALL_COMPONENTS: 'intel.oneapi.win.cpp-dpcpp-common:intel.oneapi.win.mkl.devel'

jobs:
build_lnx:
name: oneDAL Linux nightly build
Expand All @@ -38,6 +42,8 @@ jobs:
repository: oneapi-src/oneDAL
- name: Install DPC++
run: .ci/env/apt.sh dpcpp
- name: Install MKL
run: .ci/env/apt.sh mkl
- name: System Info
run: |
source /opt/intel/oneapi/compiler/latest/env/vars.sh
Expand Down Expand Up @@ -69,17 +75,13 @@ jobs:
repository: oneapi-src/oneDAL
- name: Install DPC++
run: |
& .ci/scripts/install_dpc.ps1
- name: Prepare Intel OpenCL CPU runtime
run: |
# Store the unpacked runtime to centralize and reduce external downloads
& .ci/scripts/collect_opencl_rt.ps1
& .ci/scripts/install_windows.bat $(WINDOWS_BASEKIT_URL) $(WINDOWS_ALL_COMPONENTS)
- name: System Info
shell: cmd
run: |
set PATH=C:\msys64\usr\bin;%PATH%
pip install cpufeature
call .\dpcpp\compiler\latest\env\vars.bat
call C:\temp\oneapi\setvars.bat
bash .ci/scripts/describe_system.sh
- name: Make daal
shell: cmd
Expand Down
28 changes: 10 additions & 18 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,6 @@ opencl_repo(
name = "opencl",
)

load("@onedal//dev/bazel/deps:micromkl.bzl", "micromkl_repo", "micromkl_dpc_repo")
micromkl_repo(
name = "micromkl",
root_env_var = "MKLFPKROOT",
url = "https://github.com/oneapi-src/oneDAL/releases/download/Dependencies/mklfpk_lnx_20230413.tgz",
sha256 = "e99dd6fb18f1fda382c53373262d1bb44c1b58aa6edff94cfb0e9d8dcd3395ed",
)

micromkl_dpc_repo(
name = "micromkl_dpc",
root_env_var = "MKLGPUFPKROOT",
url = "https://github.com/oneapi-src/oneDAL/releases/download/Dependencies/mklgpufpk_lnx_20240605.tgz",
sha256 = "0787a92e9580ed6b9fb97d054a0ed77994dbc18b4b3fb099451cb1e6ebdf4f16",
)

load("@onedal//dev/bazel/deps:openblas.bzl", "openblas_repo")
openblas_repo(
name = "openblas",
Expand Down Expand Up @@ -87,16 +72,23 @@ mkl_repo(
name = "mkl",
root_env_var = "MKLROOT",
urls = [
#when the issue with binutils will be solved, replace 2023.0 to 2024.2
"https://files.pythonhosted.org/packages/76/8c/2e6fb6186fa9335a0feb7845e001e18c22627a06ae68650e5a84ca2b536d/mkl_static-2023.0.0-py2.py3-none-manylinux1_x86_64.whl",
"https://files.pythonhosted.org/packages/cf/d1/ea2d769006337d968a89337dd1c3eb09c528f9ac629e8ab99324e1122f03/mkl_include-2023.0.0-py2.py3-none-manylinux1_x86_64.whl",
#"https://files.pythonhosted.org/packages/c1/44/42ea3ad7bbaa65acb54c977961118d7b24ea687e7c3d64aba0a019cbfa19/mkl_static-2024.2.0-py2.py3-none-manylinux1_x86_64.whl",
"https://files.pythonhosted.org/packages/80/e4/93ddfd475420f1c24d96f3bba1f87ec31a1eea847884c4ccb243cb336a61/mkl_include-2024.2.0-py2.py3-none-manylinux1_x86_64.whl",
"https://files.pythonhosted.org/packages/c9/3a/8797ef320a04e0b939a07365f09ce11f5484150bd3600c6400391c5c36e9/mkl_devel_dpcpp-2024.2.0-py2.py3-none-manylinux1_x86_64.whl",
],
sha256s = [
"49d16f315f6803b1046a4796686af766ad487f9f6d98ea76b6cdb2ebd5b559f9",
"14b0958dff799378975d83fbd00ce756645aa36b9f924bdfdb0fb031f72b734d",
#"8c2a6c6a144c5619f1df75fd550b32730f3e0632b55a15a42a95516e142ccf47",
"63ed16ece64d9420e9fe1d5e1b55e0680632b61ad1c0e5f207b17f85233fcc09",
"b80099209aef1b147b8f1c1621a47078fba2c17b2faee131939ea4d32da2c35c",
],
strip_prefixes = [
"mkl_static-2023.0.0.data/data",
"mkl_include-2023.0.0.data/data",
#"mkl_static-2024.2.0.data/data",
"mkl_include-2024.2.0.data/data",
"mkl_devel_dpcpp-2024.2.0.data/data",
],
)

Expand Down
10 changes: 3 additions & 7 deletions cpp/daal/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,7 @@ daal_module(
deps = select({
"@config//:backend_ref": [ ],
"//conditions:default": [
"@micromkl//:vml_ipp",
# TODO: Currently vml_ipp lib depends on TBB, but it shouldn't
# Remove TBB from deps once problem with vml_ipp is resolved
"@tbb//:tbb_binary",
"@mkl//:mkl_thr",
],
}),
)
Expand All @@ -32,7 +29,7 @@ daal_module(
deps = select({
"@config//:backend_ref": [ "@openblas//:openblas",
],
"//conditions:default": [ "@micromkl//:mkl_thr",
"//conditions:default": [ "@mkl//:mkl_thr",
],
}),
)
Expand Down Expand Up @@ -64,8 +61,7 @@ daal_module(
],
"//conditions:default": [
":public_includes",
"@micromkl//:headers",
"@micromkl_dpc//:headers",
"@mkl//:headers",
],
}),
)
Expand Down
Loading
Loading