Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Conversation

@kuzminrobin
Copy link
Contributor

No description provided.

* Install [.NET Core 3 SDK](https://dotnet.microsoft.com/download)
* On [WSL](https://docs.microsoft.com/en-us/windows/wsl/)/Linux:
* Install `g++` (e.g. in Ubuntu 20.04 `sudo apt-get install g++`).
* Install [`libomp`](https://openmp.llvm.org) needed for the native (C++) full-state simulator.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For other platforms the libomp is installed automatically:
Mac: src\Simulation\Native\prerequisites.ps1
Win: As part of MSVC/Clang.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To clarify, this is only the build instructions, right? If I understand correctly, since libomp is included in the NuGet package, we should have no user-facing dependencies at all.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct.

* Install [.NET Core 3 SDK](https://dotnet.microsoft.com/download)
* On [WSL](https://docs.microsoft.com/en-us/windows/wsl/)/Linux:
* Install `g++` (e.g. in Ubuntu 20.04 `sudo apt-get install g++`).
* Install [`libomp`](https://openmp.llvm.org) needed for the native (C++) full-state simulator.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To clarify, this is only the build instructions, right? If I understand correctly, since libomp is included in the NuGet package, we should have no user-facing dependencies at all.

@kuzminrobin kuzminrobin force-pushed the kuzminrobin/libOMPinstructions branch from 62c8275 to f767b6e Compare January 19, 2022 23:47
@kuzminrobin kuzminrobin force-pushed the kuzminrobin/libOMPinstructions branch from f767b6e to 7f328dc Compare January 20, 2022 22:51
@kuzminrobin kuzminrobin merged commit 61e3fde into main Jan 21, 2022
@kuzminrobin kuzminrobin deleted the kuzminrobin/libOMPinstructions branch January 21, 2022 00:40
vxfield added a commit that referenced this pull request Jan 21, 2022
* Update .NET Azure Quantum SDK version

* Temporarily adjusting broken links

* Update xfield/update-net-sdk (#907)

* Fix capitalization in xref links (#902)

xref links in https://docs.microsoft.com/en-us/qsharp/api/qsharp/microsoft.quantum.diagnostics.assertqubitwithintolerance and https://docs.microsoft.com/en-us/qsharp/api/qsharp/microsoft.quantum.diagnostics.assertqubit don't render as links. I believe docgen doesn't recognize API links if they are given in lowercase, it needs proper capitalization in xref.

Co-authored-by: XField <[email protected]>

* Update macOS build scripts for libomp dependency (#906)

* Link against checked in libomp.dylib

* Try another explicit link strategy

* Show contents of osx folder

* Try another linker strategy

* go back to old linker pattern

* try other syntax

* Try checked in openmp headers

* try getting more info from otool

* Try adapting libomp rpath on mac

* Ensure libomp lands in drops folder

* Additional copy of libomp

* Add explanatory comments

* Use @loader_path instead of @executable_path

Co-authored-by: Mariia Mykhailova <[email protected]>
Co-authored-by: Stefan J. Wernli <[email protected]>

* Added `libomp` instructions. (#901)

Co-authored-by: Mariia Mykhailova <[email protected]>
Co-authored-by: Stefan J. Wernli <[email protected]>
Co-authored-by: Robin Kuzmin <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants