Commit 6b570ed 1 parent 2b15d02 commit 6b570ed Copy full SHA for 6b570ed
File tree 4 files changed +17
-6
lines changed
4 files changed +17
-6
lines changed Original file line number Diff line number Diff line change 18
18
* Linux users on ` x86_64 ` must have a CPU supporting AVX.
19
19
[ (#157 )] ( https://github.com/PennyLaneAI/pennylane-lightning/pull/157 )
20
20
21
+ ### Bug fixes
22
+
23
+ * OpenMP built with Intel MacOS CI runners causes failures on M1 Macs. OpenMP is currently
24
+ disabled in the built wheels until this can be resolved with Github Actions runners.
25
+ [ (#166 )] ( https://github.com/PennyLaneAI/pennylane-lightning/pull/166 )
26
+
21
27
### Contributors
22
28
23
29
This release contains contributions from (in alphabetical order):
Original file line number Diff line number Diff line change 10
10
# MacOS specific build settings
11
11
CIBW_BEFORE_ALL_MACOS : |
12
12
brew uninstall --force oclint
13
- brew install libomp
14
13
15
14
# Python build settings
16
15
CIBW_BEFORE_BUILD : |
Original file line number Diff line number Diff line change 57
57
run : python -m cibuildwheel --output-dir wheelhouse
58
58
env :
59
59
CIBW_ARCHS_MACOS : ${{matrix.arch}}
60
+ USE_OMP : 1
60
61
61
62
- uses : actions/upload-artifact@v2
62
63
if : github.ref == 'refs/heads/master'
Original file line number Diff line number Diff line change @@ -91,11 +91,16 @@ class BuildExt(build_ext):
91
91
opts ["unix" ].remove ("-fopenmp" )
92
92
opts ["unix" ].remove ("-shared" )
93
93
94
- darwin_opts = [
95
- "-stdlib=libc++" ,
96
- "-Xpreprocessor" ,
97
- "-fopenmp" ,
98
- ]
94
+ darwin_opts = ["-stdlib=libc++" ]
95
+
96
+ # Used to enable OpenMP only on Intel
97
+ # Macs due to CI available of M1
98
+ if os .environ .get ("USE_OMP" ):
99
+ darwin_opts .extend ([
100
+ "-Xpreprocessor" ,
101
+ "-fopenmp" ,
102
+ ])
103
+
99
104
darwin_opts .append ("-mmacosx-version-min=10.14" )
100
105
101
106
c_opts ["unix" ] += darwin_opts
You can’t perform that action at this time.
0 commit comments