You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For GPU support, `PennyLane-Lightning-GPU <https://github.com/PennyLaneAI/pennylane-lightning-gpu>`_ can be installed by providing the optional ``[gpu]`` tag:
115
+
For GPU support, `PennyLane-Lightning-GPU <https://github.com/PennyLaneAI/pennylane-lightning-gpu>`_
116
+
can be installed by providing the optional ``[gpu]`` tag:
Other supported options are ``-DENABLE_WARNINGS=ON``,
152
-
``-DENABLE_NATIVE=ON`` (for ``-march=native``),
153
-
``-DENABLE_BLAS=ON``, ``-DENABLE_OPENMP=ON``,
154
-
``-DENABLE_KOKKOS=ON``, and ``-DENABLE_CLANG_TIDY=ON``.
159
+
Other supported options are
160
+
161
+
- ``-DENABLE_WARNINGS=ON``
162
+
- ``-DENABLE_NATIVE=ON`` (for ``-march=native``)
163
+
- ``-DENABLE_BLAS=ON``
164
+
- ``-DENABLE_OPENMP=ON``
165
+
- ``-DENABLE_KOKKOS=ON``
166
+
- ``-DENABLE_CLANG_TIDY=ON``
155
167
156
168
Compile on Windows with MSVC
157
169
----------------------------
158
170
159
-
You can also compile Pennylane-Lightning on Windows using `Microsoft Visual C++ <https://visualstudio.microsoft.com/vs/features/cplusplus/>`_ compiler. You need `cmake <https://cmake.org/download/>`_ and appropriate Python environment (e.g. using `Anaconda <https://www.anaconda.com/>`_).
171
+
You can also compile Pennylane-Lightning on Windows using
172
+
`Microsoft Visual C++ <https://visualstudio.microsoft.com/vs/features/cplusplus/>`_ compiler.
173
+
You need `cmake <https://cmake.org/download/>`_ and appropriate Python environment
174
+
(e.g. using `Anaconda <https://www.anaconda.com/>`_).
160
175
161
176
162
-
We recommend to use ``[x64 (or x86)] Native Tools Command Prompt for VS [version]`` for compiling the library. Be sure that ``cmake`` and ``python`` can be called within the prompt.
177
+
We recommend to use ``[x64 (or x86)] Native Tools Command Prompt for VS [version]`` for compiling the library.
178
+
Be sure that ``cmake`` and ``python`` can be called within the prompt.
Copy file name to clipboardexpand all lines: setup.py
+35-77
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,6 @@
13
13
# limitations under the License.
14
14
importos
15
15
importplatform
16
-
importsys
17
16
importsubprocess
18
17
importshutil
19
18
frompathlibimportPath
@@ -32,32 +31,32 @@ class CMakeBuild(build_ext):
32
31
This class is built upon https://github.com/diegoferigo/cmake-build-extension/blob/master/src/cmake_build_extension/build_extension.py and https://github.com/pybind/cmake_example/blob/master/setup.py
33
32
"""
34
33
35
-
user_options=build_ext.user_options+ [
36
-
("define=", "D", "Define variables for CMake")
37
-
]
34
+
user_options=build_ext.user_options+ [("define=", "D", "Define variables for CMake")]
38
35
39
36
definitialize_options(self):
40
37
super().initialize_options()
41
38
self.define=None
39
+
self.verbosity=""
42
40
43
41
deffinalize_options(self):
44
42
# Parse the custom CMake options and store them in a new attribute
0 commit comments