Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
13 changes: 13 additions & 0 deletions conda-recipes/iqsharp/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion images/iqsharp-base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down