Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix OpenMP library issues on M1 Macs #166

Merged
merged 2 commits into from
Nov 8, 2021
Merged

Fix OpenMP library issues on M1 Macs #166

merged 2 commits into from
Nov 8, 2021

Conversation

mlxd
Copy link
Member

@mlxd mlxd commented Nov 8, 2021

Context: This PR disables OpenMP for lightning on M1 Macs due the lack of M1 support on Github Actions.

Description of the Change: OpenMP is disabled for wheels built targeting M1 Macs.

Benefits: No issues with missing symbols.

Possible Drawbacks: OpenMP support would add performance benefits when fully utilised.

Related GitHub Issues: #151

@codecov
Copy link

codecov bot commented Nov 8, 2021

Codecov Report

❗ No coverage uploaded for pull request base (v0.19.0-rc0@2b15d02). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@               Coverage Diff               @@
##             v0.19.0-rc0      #166   +/-   ##
===============================================
  Coverage               ?   100.00%           
===============================================
  Files                  ?         4           
  Lines                  ?       182           
  Branches               ?         0           
===============================================
  Hits                   ?       182           
  Misses                 ?         0           
  Partials               ?         0           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2b15d02...4401306. Read the comment docs.

darwin_opts = ["-stdlib=libc++"]

# Used to enable OpenMP only on Intel
# Macs due to CI available of M1
Copy link
Member Author

Choose a reason for hiding this comment

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

Suggested change
# Macs due to CI available of M1
# Macs due to lacking CI availability of M1 hardware.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 8, 2021

Test Report (C++) on Ubuntu

       1 files         1 suites   0s ⏱️
   327 tests    327 ✔️ 0 💤 0
1 185 runs  1 185 ✔️ 0 💤 0

Results for commit 4401306.

♻️ This comment has been updated with latest results.

@mlxd mlxd merged commit 6b570ed into v0.19.0-rc0 Nov 8, 2021
@mlxd mlxd deleted the arm_omp branch November 8, 2021 16:58
mlxd added a commit that referenced this pull request Nov 15, 2021
* Version Bump `0.19.0` (#163)

* Added auto version bump functionality to pl lightning (#159)

* Added auto version bump functionality to pl lightning

* Update .github/workflows/pre_release_version_bump.yml

removed trailing white space

* Update .github/workflows/post_release_version_bump.yml

Co-authored-by: Jay Soni <jbsoni@uwaterloo.ca>

* Update .github/workflows/pre_release_version_bump.yml

Co-authored-by: Jay Soni <jbsoni@uwaterloo.ca>

* removed flag for pennylane release as it is not required

Co-authored-by: antalszava <antalszava@gmail.com>

* Update pre_release_version_bump.yml (#160)

* Update pre_release_version_bump.yml

* Update pre_release_version_bump.yml

* Update pre_release_version_bump.yml

* Update .github/workflows/pre_release_version_bump.yml

* Apply suggestions from code review

* Update post_release_version_bump.yml

swap main --> master

* Update CHANGELOG.md

To be consistent with other plugins and not cause errors for the auto version bumping

* pre release version bump

* updates

* Update pennylane_lightning/_version.py

* formatting updates to changelog

Co-authored-by: Jay Soni <jbsoni@uwaterloo.ca>
Co-authored-by: antalszava <antalszava@gmail.com>
Co-authored-by: antalszava <antalszava@users.noreply.github.com>

* Fix OpenMP library issues on M1 Macs (#166)

* Fix OMP issue on M1 macs

* Update changelog

* Fix CI builder release issues (#168)

* Fix OMP issue on M1 macs

* Update changelog

* Fix CI builder

* Trigger CI on release creation

* CI wheelbuilder updates (#169)

* Fix OMP with ARM MacOS

* Ensure wheels uploaded to GH

* Separate out noarch wheels

* Update .github/CHANGELOG.md

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Jay Soni <jbsoni@uwaterloo.ca>
Co-authored-by: antalszava <antalszava@gmail.com>
Co-authored-by: antalszava <antalszava@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant