Skip to content

Commit c60e787

Browse files
authored
Remove --enable-mlir (hasn't been needed for a while) (#586)
Preparing for NVIDIA/cuda-quantum#4655 The above PR removes support for the flag, but the default of enabling MLIR has been the default for quite some time now, so the changes in this PR should have no effect, even if they are merged before 4655. Normally changes to docs and examples would need to wait for a release to occur first, but since these changes are backwards compatible with older versions of nvq++, this isn't necessary. --------- Signed-off-by: Ben Howe <bhowe@nvidia.com>
1 parent 5ac581a commit c60e787

17 files changed

Lines changed: 17 additions & 18 deletions

File tree

cmake/Modules/CUDA-QX.cmake

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ Example usage:
5353
${CMAKE_CURRENT_SOURCE_DIR}/file1.cpp
5454
${CMAKE_CURRENT_SOURCE_DIR}/file2.cpp
5555
COMPILER_FLAGS
56-
--enable-mlir
5756
-v
5857
DEPENDS_ON
5958
SomeOtherTarget
@@ -94,7 +93,7 @@ function(cudaqx_add_device_code LIBRARY_NAME)
9493
add_custom_command(
9594
OUTPUT ${output_file}
9695
COMMAND ${COMPILER}
97-
${ARGS_COMPILER_FLAGS} -c -fPIC --enable-mlir
96+
${ARGS_COMPILER_FLAGS} -c -fPIC
9897
${CMAKE_CURRENT_SOURCE_DIR}/${source} -o ${baseName}
9998
"$<$<BOOL:${prop}>:-I $<JOIN:${prop}, -I >>"
10099
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${source} ${ARGS_DEPENDS_ON}

docs/sphinx/components/qec/introduction.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1285,7 +1285,7 @@ Example of running a memory experiment:
12851285
.. code-block:: cpp
12861286
12871287
// Compile and run with:
1288-
// nvq++ --enable-mlir --target=stim -lcudaq-qec example.cpp
1288+
// nvq++ --target=stim -lcudaq-qec example.cpp
12891289
// ./a.out
12901290
12911291
#include "cudaq.h"

docs/sphinx/components/solvers/introduction.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ Basic Usage
398398
#include "cudaq/solvers/operators.h"
399399
400400
// compile with
401-
// nvq++ adaptEx.cpp --enable-mlir -lcudaq-solvers
401+
// nvq++ adaptEx.cpp -lcudaq-solvers
402402
// ./a.out
403403
404404
int main() {

docs/sphinx/examples/qec/cpp/circuit_level_noise.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
******************************************************************************/
88
// [Begin Documentation]
99
// Compile and run with:
10-
// nvq++ --enable-mlir --target=stim -lcudaq-qec circuit_level_noise.cpp
10+
// nvq++ --target=stim -lcudaq-qec circuit_level_noise.cpp
1111
// ./a.out
1212

1313
#include "cudaq.h"

docs/sphinx/examples/qec/cpp/code_capacity_noise.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
// decoder, code
1111
//
1212
// Compile and run with
13-
// nvq++ --enable-mlir --target=stim -lcudaq-qec code_capacity_noise.cpp
13+
// nvq++ --target=stim -lcudaq-qec code_capacity_noise.cpp
1414
// ./a.out
1515

1616
#include <algorithm>

docs/sphinx/examples/solvers/cpp/adapt_h2.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include "cudaq/solvers/operators.h"
1212

1313
// Compile and run with
14-
// nvq++ --enable-mlir -lcudaq-solvers adapt_h2.cpp -o adapt_ex
14+
// nvq++ -lcudaq-solvers adapt_h2.cpp -o adapt_ex
1515
// ./adapt_ex
1616

1717
int main() {

docs/sphinx/examples/solvers/cpp/molecular_docking_qaoa.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include "cudaq/solvers/qaoa.h"
1212

1313
// Compile and run with
14-
// nvq++ --enable-mlir -lcudaq-solvers molecular_docking_qaoa.cpp
14+
// nvq++ -lcudaq-solvers molecular_docking_qaoa.cpp
1515
// ./a.out
1616

1717
int main() {

docs/sphinx/examples/solvers/cpp/uccsd_vqe.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#include "cudaq/solvers/vqe.h"
1313

1414
// Compile and run with
15-
// nvq++ --enable-mlir -lcudaq-solvers uccsd_vqe.cpp -o uccsd_vqe
15+
// nvq++ -lcudaq-solvers uccsd_vqe.cpp -o uccsd_vqe
1616
// ./uccsd_vqe
1717

1818
int main() {

docs/sphinx/examples_rst/qec/circuit_level_noise.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Here's how to use CUDA-Q QEC to perform a circuit-level noise model experiment i
3838

3939
.. code-block:: bash
4040
41-
nvq++ --enable-mlir --target=stim -lcudaq-qec circuit_level_noise.cpp -o circuit_level_noise
41+
nvq++ --target=stim -lcudaq-qec circuit_level_noise.cpp -o circuit_level_noise
4242
./circuit_level_noise
4343
4444

docs/sphinx/examples_rst/qec/code_capacity_noise.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Here's how to use CUDA-Q QEC to perform a code capacity noise model experiment i
4848

4949
.. code-block:: bash
5050
51-
nvq++ --enable-mlir --target=stim -lcudaq-qec code_capacity_noise.cpp -o code_capacity_noise
51+
nvq++ --target=stim -lcudaq-qec code_capacity_noise.cpp -o code_capacity_noise
5252
./code_capacity_noise
5353
5454

0 commit comments

Comments
 (0)