oneAPI Registration, Download, Licensing and Installation
Support for Getting Started questions related to download, Installation and licensing for Intel oneAPI Toolkits and software development tools.
1331 Diskussionen

Installing IntelOneApi 2023 or 2023 on Windows Docker Container

willemnoorduin
Anfänger
342Aufrufe

Hello,

For Deltares I am trying to get the Intel OneApi (Fortran or DCC) compiler installed on a mcr.microsoft.com/windows/servercore:ltsc2022 windows docker image. In the past, I had some success with 2023, but now the following Dockerfile seems not to be working:

 

 

# escape=`

# Use the latest Windows Server Core 2022 image.
FROM mcr.microsoft.com/windows/servercore:ltsc2022

# Restore the default Windows shell for correct batch processing.
SHELL ["cmd", "/S", "/C"]

RUN `
    # Download the Build Tools bootstrapper.
    curl -SL --output vs_buildtools.exe https://aka.ms/vs/17/release/vs_buildtools.exe `
    `
    # Install Build Tools with the Microsoft.VisualStudio.Workload.AzureBuildTools workload, excluding workloads and components with known issues.
    && (start /w vs_buildtools.exe --quiet --wait --norestart --nocache `
        --installPath "%ProgramFiles(x86)%\Microsoft Visual Studio\2022\BuildTools" `
	--add Microsoft.VisualStudio.Workload.ManagedDesktopBuildTools;includeRecommended;includeOptional `
	--add Microsoft.VisualStudio.Workload.MSBuildTools;includeRecommended;includeOptional `
	--add Microsoft.VisualStudio.Component.VC.Tools.x86.x64 `
        --add Microsoft.VisualStudio.Workload.AzureBuildTools `
        --remove Microsoft.VisualStudio.Component.Windows10SDK.10240 `
        --remove Microsoft.VisualStudio.Component.Windows10SDK.10586 `
        --remove Microsoft.VisualStudio.Component.Windows10SDK.14393 `
        --remove Microsoft.VisualStudio.Component.Windows81SDK `
        || IF "%ERRORLEVEL%"=="3010" EXIT 0) `
    `
    # Cleanup
    && del /q vs_buildtools.exe

# Enable long pathnames

# escape=\

SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'Continue'; $verbosePreference='Continue';"]
RUN reg add "HKLM\SYSTEM\CurrentControlSet\Control\FileSystem" /v "LongPathsEnabled" /t REG_DWORD /d 1 /f

# Installing chocolateley package manager and some apps

RUN Invoke-WebRequest -UseBasicParsing  https://community.chocolatey.org/install.ps1 -OutFile choco_instell.ps1
RUN ./choco_instell.ps1
RUN choco install ninja python svn git -y

# Adding intel offline installers

ADD w_dpcpp-cpp-compiler_p_2024.1.0.469_offline.exe C:\\
ADD w_fortran-compiler_p_2024.1.0.466_offline.exe C:\\

# Define the entry point for the docker container.
# This entry point starts the developer command prompt and launches the PowerShell shell.
ENTRYPOINT ["C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\Common7\\Tools\\VsDevCmd.bat", "&&", "powershell.exe", "-NoLogo", "-ExecutionPolicy", "Bypass"]

 

When I login to a container, the following Powershell command seems to start something, but nothing is installed:

 

Start-Process -FilePath "C:\w_dpcpp-cpp-compiler_p_2024.1.0.469_offline.exe" -ArgumentList "--silent", "-a", "--action", "install", "--eula=accept", "-s" -Wait

Start-Process -FilePath "w_fortran-compiler_p_2024.1.0.466_offline.exe" -ArgumentList "--silent", "-a", "--action", "install", "--eula=accept", "-s" -Wait

 

Can you help debugging this, or say if it is even possible what I am trying to do here ?

Beschriftungen (1)
0 Kudos
5 Antworten
Vipin_Singh1
Moderator
294Aufrufe

Hi Willem, Could you please share the below details with us?

 

  • Version of Microsoft Visual Studio installed along with it's build version.
  • Exact version of Intel® oneAPI Base toolkit.
  • Other versions of Intel® Parallel Studio XE or Intel® oneAPI already installed on the system.
  • Installation Log files. 
    • The default path for a log file for a oneAPI installation is: C:\Program Files (x86)\Intel\oneAPI\logs 

 

To assist you further, we would require these details.


Vipin_Singh1
Moderator
272Aufrufe

Hi Willem, Intel® has decided that Intel® Toolkits Versions: 2024.0.0 and earlier are not supported anymore. We urge users to upgrade to the latest version of Intel® developer tools. The unsupported versions do not include the latest functional and security updates. These versions are targeted to be removed after a period. We understand that this might be challenging, but it's important to note that the users with active priority support can only access older product versions.

 

For more information refer to the link: https://www.intel.com/content/www/us/en/developer/articles/release-notes/oneapi-supported-product-versions.htm, and scroll down to the Unsupported Product Version.

 

Intel® oneAPI users with active Intel Priority Support can access older versions via a secure portal you gain access to as part of your support subscription. 

 

FAQ's Priority Support Link: https://www.intel.com/content/www/us/en/developer/get-help/faq-priority-support.html


Please let us know if you're facing any issues or concerns while installing the latest version (i.e.: 2024.1), we're here to help and will do our utmost to assist you.


willemnoorduin
Anfänger
246Aufrufe

Hi,

It seems that changing the base image from:

 

mcr.microsoft.com/windows/servercore:ltsc2022

 

to:

 

mcr.microsoft.com/windows/server:ltsc2022

 

Did the trick here. Note thatwe are not using Visual Studio here, but just the MSBuild Tools.

 

Greg_Anderson_Intel
261Aufrufe

Intel® oneAPI users with active Intel Priority Support can access older versions via a secure portal you gain access to as part of your support subscription.

 

FAQ's Priority Support Link: https://www.intel.com/content/www/us/en/developer/get-help/faq-priority-support.html

Vipin_Singh1
Moderator
190Aufrufe

Hi Willem; unfortunately, we were unable to hear back from you. 


If you have any further queries, please post a new question, as this thread will no longer be monitored by Intel®.


Antworten