Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.

How to install oneMKL in GitHub Actions?

hmenke
Beginner
1,374 Views

I'm trying to use oneMKL in GitHub Actions and I have stumbled upon https://github.com/oneapi-src/oneapi-ci which provides an example how to install DPCPP inside GitHub Actions. To this end I simply copied the script into my workflow file and essentially replaced COMPONENTS=intel.oneapi.win.dpcpp-compiler with COMPONENTS=intel.oneapi.win.mkl.devel:intel.oneapi.win.tbb.devel:intel.oneapi.win.dpl.

 

name: oneMKL test

on: [ push ]

jobs:
  build:
    runs-on: windows-2019
    steps:
      # https://github.com/oneapi-src/oneapi-ci/blob/master/scripts/install_windows.bat
      - name: Install Intel oneAPI Math Kernel Library (oneMKL)
        shell: cmd
        run: |
           on
          REM SPDX-FileCopyrightText: 2022 Intel Corporation
          REM
          REM SPDX-License-Identifier: MIT
          set URL=https:/registrationcenter-download.intel.com/akdlm/IRC_NAS/c961e083-5685-4f0b-ada5-c6cf16f561dd/w_BaseKit_p_2023.1.0.47256_offline.exe
          set COMPONENTS=intel.oneapi.win.mkl.devel:intel.oneapi.win.tbb.devel:intel.oneapi.win.dpl
          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
          webimage_extracted\bootstrapper.exe -s --action install --components=%COMPONENTS% --eula=accept -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%

 

However, the installer never finished. bootstrapper.exe just sits there for multiple hours without any output until GitHub kills the run. Can you please tell me what I'm doing wrong?

I've also reported this as an issue on the oneapi-ci repo: https://github.com/oneapi-src/oneapi-ci/issues/71

0 Kudos
1 Solution
hmenke
Beginner
1,342 Views

Oof, turned out the culprit was the environment variable QT_QPA_PLATFORM="offscreen" (which I had omitted in my example and therefore was not able to reproduce the issue)

View solution in original post

3 Replies
hmenke
Beginner
1,343 Views

Oof, turned out the culprit was the environment variable QT_QPA_PLATFORM="offscreen" (which I had omitted in my example and therefore was not able to reproduce the issue)

George_Silva_Intel
1,333 Views

Thank you so much for reaching Intel and for sharing the solution for your issue. The oneMKL users will benefit from your contribution.

0 Kudos
PraneethA_Intel
Moderator
1,309 Views

Hi Henri,


Thanks for posting in Intel communities.


Glad to know your issue is resolved. Thanks for sharing the solution with us. If you need any additional information, please post a new question as this thread will no longer be monitored by Intel.


Thanks and Regards,

Praneeth Achanta


0 Kudos
Reply