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

Conversation

@kuzminrobin
Copy link
Contributor

@kuzminrobin kuzminrobin commented Dec 9, 2021

A set of 3 PRs: Q#RT, QDK, IQ# repos (see also quantum-docs PR).
A set of the latter 2 are expected to require a branch-specific e2e build or a merge of the former one first.

@kuzminrobin
Copy link
Contributor Author

Please review.

# Note that we install them here to minimize the number
# of layers.
libgomp1 \
libomp-7-dev \
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is this needed in the iqsharp-base Dockerfile? That indicates to me that even with static linking, there's a new requirement passed onto users.

Copy link
Contributor Author

@kuzminrobin kuzminrobin Dec 10, 2021

Choose a reason for hiding this comment

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

Static linking attempt has failed. I failed to find the libomp.a static library, it wasn't installed as a part of libomp package (I didn't try to build libomp.a from sources). Googling out didn't help, @idavis, correct me if I'm wrong.
Also, IIRC, there was some hypothetical risk with licensing, if we provide libomp together with our native simulator. But installing the libomp had no any licensing issues.

Why is this needed in the iqsharp-base Dockerfile?

Because the native simulator dynamic library is built on ubuntu-latest, where libomp is already installed, but the iqsharp-base Docker image (that uses the native simulator dynamic library) is run on Debian Buster (Debian 10), where the libomp is not installed. So I added the installation of libomp on Debian Buster.

Copy link

Choose a reason for hiding this comment

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

@kuzminrobin can we try libomp5-7? That should just be the libomp runtime.

Copy link
Contributor

@cgranade cgranade left a comment

Choose a reason for hiding this comment

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

Marking as request changes to make sure that we don't add additional requirements to users without double-checking first.

@cgranade
Copy link
Contributor

Approved, but we should be sure to document this change; users who work directly on Linux or in custom containers may need to update from their previous dependency.

@kuzminrobin
Copy link
Contributor Author

@cgranade, any direct links to the documentation files that I need to update are more than welcome. If you mean just the QDK Release Notes (of January 2022 release) then feel free to reply with "relnotes".

@cgranade
Copy link
Contributor

@cgranade, any direct links to the documentation files that I need to update are more than welcome. If you mean just the QDK Release Notes (of January 2022 release) then feel free to reply with "relnotes".

I don't have any off the top of my head, sorry, but some of the install docs used to mention the libgomp1 dependency; searching for if there is still such a mention may be helpful, perhaps?

@kuzminrobin
Copy link
Contributor Author

@cgranade,

some of the install docs used to mention the libgomp1 dependency; searching for if there is still such a mention may be helpful, perhaps?

See MicrosoftDocs/quantum-docs#427.

@kuzminrobin kuzminrobin merged commit 10c1e89 into main Jan 5, 2022
@kuzminrobin kuzminrobin deleted the kuzminrobin/gcc-version-fix6 branch January 5, 2022 04:31
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.

4 participants