diff --git a/conda-recipes/iqsharp/build.ps1 b/conda-recipes/iqsharp/build.ps1 index 7ef498bda0..f4d4d71bea 100644 --- a/conda-recipes/iqsharp/build.ps1 +++ b/conda-recipes/iqsharp/build.ps1 @@ -54,3 +54,16 @@ Push-Location $TargetDirectory Write-Host "$ $InstallCmd"; Invoke-Expression $InstallCmd; Pop-Location + +Write-Host "## Installing OpenMP support into library path. ##" +if ($IsLinux) { + $SourceFilesPath = (Join-Path (Join-Path (Join-Path (Join-Path $TargetDirectory "runtimes") $RuntimeID) "native") "libomp.so.*") + $DstDirPath = (Join-Path (Join-Path $Env:PREFIX "lib") "x86_64-linux-gnu") +} elseif ($IsMacOS) { + $SourceFilesPath = (Join-Path (Join-Path (Join-Path (Join-Path $TargetDirectory "runtimes") $RuntimeID) "native") "libomp.dylib") + $DstDirPath = (Join-Path (Join-Path $Env:PREFIX "lib") "x86_64-darwin-macho") +} +if (-not (Test-Path $DstDirPath)) { + New-Item -Path $DstDirPath -ItemType "directory" +} +Copy-Item -Verbose $SourceFilesPath $DstDirPath diff --git a/images/iqsharp-base/Dockerfile b/images/iqsharp-base/Dockerfile index 6618d38585..2497d5390a 100644 --- a/images/iqsharp-base/Dockerfile +++ b/images/iqsharp-base/Dockerfile @@ -20,7 +20,7 @@ RUN apt-get update && \ # Dependencies for the Quantum Development Kit. # Note that we install them here to minimize the number # of layers. - libgomp1 \ + libomp5-7 \ # Dependency for QIR libc6 \ # Not strictly needed, but Git is useful for several