Skip to content

Commit

Permalink
demos: Remove unused compiler arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
hahnjo authored and vgvassilev committed Jul 17, 2023
1 parent 4ab5fc7 commit ab5a41f
Show file tree
Hide file tree
Showing 17 changed files with 32 additions and 32 deletions.
4 changes: 2 additions & 2 deletions demos/Arrays.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@

// To run the demo please type:
// path/to/clang++ -Xclang -add-plugin -Xclang clad -Xclang -load -Xclang \
// path/to/libclad.so -I../include/ -x c++ -std=c++11 Gradient.cpp
// path/to/libclad.so -I../include/ -std=c++11 Gradient.cpp
//
// A typical invocation would be:
// ../../../../obj/Debug+Asserts/bin/clang++ -Xclang -add-plugin -Xclang clad \
// -Xclang -load -Xclang ../../../../obj/Debug+Asserts/lib/libclad.dylib \
// -I../include/ -x c++ -std=c++11 Gradient.cpp
// -I../include/ -std=c++11 Gradient.cpp

// Necessary for clad to work include
#include "clad/Differentiator/Differentiator.h"
Expand Down
4 changes: 2 additions & 2 deletions demos/BasicUsage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@

// To run the demo please type:
// path/to/clang++ -Xclang -add-plugin -Xclang clad -Xclang -load -Xclang \
// path/to/libclad.so -I../include/ -x c++ -std=c++11 BasicUsage.cpp
// path/to/libclad.so -I../include/ -std=c++11 BasicUsage.cpp
//
// A typical invocation would be:
// ../../../../obj/Debug+Asserts/bin/clang++ -Xclang -add-plugin -Xclang clad \
// -Xclang -load -Xclang ../../../../obj/Debug+Asserts/lib/libclad.dylib \
// -I../include/ -x c++ -std=c++11 BasicUsage.cpp
// -I../include/ -std=c++11 BasicUsage.cpp

// Necessary for clad to work include
#include "clad/Differentiator/Differentiator.h"
Expand Down
4 changes: 2 additions & 2 deletions demos/ComputerGraphics/smallpt/SmallPT.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

// To compile the demo please type:
// path/to/clang++ -O3 -Xclang -add-plugin -Xclang clad -Xclang -load -Xclang \
// path/to/libclad.so -I../../include/ -x c++ -std=c++11 -lstdc++ -lm SmallPT.cpp \
// path/to/libclad.so -I../../include/ -std=c++11 SmallPT.cpp \
// -fopenmp=libiomp5 -o SmallPT
//
// To run the demo please type:
Expand All @@ -18,7 +18,7 @@
// A typical invocation would be:
// ../../../../../obj/Debug+Asserts/bin/clang++ -O3 -Xclang -add-plugin -Xclang clad \
// -Xclang -load -Xclang ../../../../../obj/Debug+Asserts/lib/libclad.dylib \
// -I../../include/ -x c++ -std=c++11 -lstdc++ -lm SmallPT.cpp -fopenmp=libiomp5 -o SmallPT
// -I../../include/ -std=c++11 SmallPT.cpp -fopenmp=libiomp5 -o SmallPT
// ./SmallPT 500 && xv image.ppm

// Necessary for clad to work include
Expand Down
4 changes: 2 additions & 2 deletions demos/ControlFlow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@

// To run the demo please type:
// path/to/clang++ -Xclang -add-plugin -Xclang clad -Xclang -load -Xclang \
// path/to/libclad.so -I../include/ -x c++ -std=c++11 ControlFlow.C
// path/to/libclad.so -I../include/ -std=c++11 ControlFlow.C
//
// A typical invocation would be:
// ../../../../obj/Debug+Asserts/bin/clang++ -Xclang -add-plugin -Xclang clad \
// -Xclang -load -Xclang ../../../../obj/Debug+Asserts/lib/libclad.dylib \
// -I../include/ -x c++ -std=c++11 ControlFlow.C
// -I../include/ -std=c++11 ControlFlow.C

// Necessary for clad to work include
#include "clad/Differentiator/Differentiator.h"
Expand Down
4 changes: 2 additions & 2 deletions demos/CustomTypeNumDiff.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@

// To run the demo please type:
// path/to/clang++ -Xclang -add-plugin -Xclang clad -Xclang -load -Xclang \
// path/to/libclad.so -I../include/ -x c++ -std=c++11 CustomTypeNumDiff.cpp
// path/to/libclad.so -I../include/ -std=c++11 CustomTypeNumDiff.cpp
//
// A typical invocation would be:
// ../../../../obj/Debug+Asserts/bin/clang++ -Xclang -add-plugin -Xclang clad \
// -Xclang -load -Xclang ../../../../obj/Debug+Asserts/lib/libclad.dylib \
// -I../include/ -x c++ -std=c++11 CustomTypeNumDiff.cpp
// -I../include/ -std=c++11 CustomTypeNumDiff.cpp

// Necessary for clad to work include
#include "clad/Differentiator/Differentiator.h"
Expand Down
4 changes: 2 additions & 2 deletions demos/DebuggingClad.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@

// To run the demo please type:
// path/to/clang++ -Xclang -add-plugin -Xclang clad -Xclang -load -Xclang \
// path/to/libclad.so -I../include/ -x c++ -std=c++11 DebuggingClad.cpp
// path/to/libclad.so -I../include/ -std=c++11 DebuggingClad.cpp
//
// A typical invocation would be:
// ../../../../obj/Debug+Asserts/bin/clang++ -Xclang -add-plugin -Xclang clad \
// -Xclang -load -Xclang ../../../../obj/Debug+Asserts/lib/libclad.dylib \
// -I../include/ -x c++ -std=c++11 DebuggingClad.cpp
// -I../include/ -std=c++11 DebuggingClad.cpp

// Necessary for clad to work include
#include "clad/Differentiator/Differentiator.h"
Expand Down
2 changes: 1 addition & 1 deletion demos/ErrorEstimation/CustomModel/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Now, to use your custom estimation model, you can just specify the `.so` created
So a typical invocation to clad would then look like the following:

```bash
clang++ -Xclang -add-plugin -Xclang clad -Xclang -load -Xclang CLAD_INST/lib/clad.so -ICLAD_INST/include -x c++ -lstdc++ -Xclang -plugin-arg-clad -Xclang -fcustom-estimation-model -Xclang -plugin-arg-clad -Xclang ./libCustomModel.so CLAD_BASE/demos/CustomModel/test.cpp
clang++ -Xclang -add-plugin -Xclang clad -Xclang -load -Xclang CLAD_INST/lib/clad.so -ICLAD_INST/include -Xclang -plugin-arg-clad -Xclang -fcustom-estimation-model -Xclang -plugin-arg-clad -Xclang ./libCustomModel.so CLAD_BASE/demos/CustomModel/test.cpp
```
## Verifying results

Expand Down
4 changes: 2 additions & 2 deletions demos/ErrorEstimation/FloatSum.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@

// To run the demo please type:
// path/to/clang++ -Xclang -add-plugin -Xclang clad -Xclang -load -Xclang \
// path/to/libclad.so -I../include/ -x c++ -std=c++11 FloatSum.cpp
// path/to/libclad.so -I../include/ -std=c++11 FloatSum.cpp
//
// A typical invocation would be:
// ../../../../obj/Debug+Asserts/bin/clang++ -Xclang -add-plugin -Xclang clad \
// -Xclang -load -Xclang ../../../../obj/Debug+Asserts/lib/libclad.dylib \
// -I../include/ -x c++ -std=c++11 FloatSum.cpp
// -I../include/ -std=c++11 FloatSum.cpp
//
// To plot the results install gnuplot and type:
//
Expand Down
2 changes: 1 addition & 1 deletion demos/ErrorEstimation/PrintModel/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Now, to use your custom estimation model, you can just specify the `.so` created
So a typical invocation to clad would then look like the following:

```bash
clang -Xclang -add-plugin -Xclang clad -Xclang -load -Xclang CLAD_INST/lib/clad.so -ICLAD_INST/include -x c++ -lstdc++ -Xclang -plugin-arg-clad -Xclang -fcustom-estimation-model -Xclang -plugin-arg-clad -Xclang ./libPrintModel.so CLAD_BASE/demos/PrintModel/test.cpp
clang++ -Xclang -add-plugin -Xclang clad -Xclang -load -Xclang CLAD_INST/lib/clad.so -ICLAD_INST/include -Xclang -plugin-arg-clad -Xclang -fcustom-estimation-model -Xclang -plugin-arg-clad -Xclang ./libPrintModel.so CLAD_BASE/demos/PrintModel/test.cpp
```
## Verifying results

Expand Down
4 changes: 2 additions & 2 deletions demos/Functor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@

// To run the demo please type:
// path/to/clang++ -Xclang -add-plugin -Xclang clad -Xclang -load -Xclang \
// path/to/libclad.so -I../include/ -x c++ -std=c++11 Functor.cpp
// path/to/libclad.so -I../include/ -std=c++11 Functor.cpp
//
// A typical invocation would be:
// ../../../../obj/Debug+Asserts/bin/clang++ -Xclang -add-plugin -Xclang clad \
// -Xclang -load -Xclang ../../../../obj/Debug+Asserts/lib/libclad.dylib \
// -I../include/ -x c++ -std=c++11 Functor.cpp
// -I../include/ -std=c++11 Functor.cpp

// Necessary for clad to work include
#include "clad/Differentiator/Differentiator.h"
Expand Down
4 changes: 2 additions & 2 deletions demos/Gradient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@

// To run the demo please type:
// path/to/clang++ -Xclang -add-plugin -Xclang clad -Xclang -load -Xclang \
// path/to/libclad.so -I../include/ -x c++ -std=c++11 Gradient.cpp
// path/to/libclad.so -I../include/ -std=c++11 Gradient.cpp
//
// A typical invocation would be:
// ../../../../obj/Debug+Asserts/bin/clang++ -Xclang -add-plugin -Xclang clad \
// -Xclang -load -Xclang ../../../../obj/Debug+Asserts/lib/libclad.dylib \
// -I../include/ -x c++ -std=c++11 Gradient.cpp
// -I../include/ -std=c++11 Gradient.cpp

// Necessary for clad to work include
#include "clad/Differentiator/Differentiator.h"
Expand Down
4 changes: 2 additions & 2 deletions demos/GradientDescent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@

// To run the demo please type:
// path/to/clang++ -Xclang -add-plugin -Xclang clad -Xclang -load -Xclang \
// path/to/libclad.so -I../include/ -x c++ -lstdc++ -lm GradientDescent.cpp
// path/to/libclad.so -I../include/ GradientDescent.cpp
//
// A typical invocation would be:
// ../../../../obj/Debug+Asserts/bin/clang++ -Xclang -add-plugin -Xclang clad \
// -Xclang -load -Xclang ../../../../obj/Debug+Asserts/lib/libclad.dylib \
// -I../include/ -x c++ -lstdc++ -lm GradientDescent.cpp
// -I../include/ GradientDescent.cpp
//
// To plot the results install gnuplot and type:
// gnuplot -e "plot 'dataset_gd.dat' with points pt 7; replot 'out_gd.dat' \
Expand Down
4 changes: 2 additions & 2 deletions demos/Hessian.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@

// To run the demo please type:
// path/to/clang++ -Xclang -add-plugin -Xclang clad -Xclang -load -Xclang \
// path/to/libclad.so -I../include/ -x c++ -std=c++11 Hessian.cpp
// path/to/libclad.so -I../include/ -std=c++11 Hessian.cpp
//
// A typical invocation would be:
// ../../../../obj/Debug+Asserts/bin/clang++ -Xclang -add-plugin -Xclang clad \
// -Xclang -load -Xclang ../../../../obj/Debug+Asserts/lib/libclad.dylib \
// -I../include/ -x c++ -std=c++11 Hessian.cpp
// -I../include/ -std=c++11 Hessian.cpp

// Necessary for clad to work include
#include "clad/Differentiator/Differentiator.h"
Expand Down
4 changes: 2 additions & 2 deletions demos/ODESolverSensitivity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@

// To run the demo please type:
// path/to/clang++ -Xclang -add-plugin -Xclang clad -Xclang -load -Xclang \
// path/to/libclad.so -I../include/ -x c++ -lstdc++ -lm ODESolverSensitivity.cpp
// path/to/libclad.so -I../include/ ODESolverSensitivity.cpp
//
// A typical invocation would be:
// ../../../../obj/Debug+Asserts/bin/clang++ -Xclang -add-plugin -Xclang clad \
// -Xclang -load -Xclang ../../../../obj/Debug+Asserts/lib/libclad.dylib \
// -I../include/ -x c++ -lstdc++ -lm ODESolverSensitivity.cpp
// -I../include/ ODESolverSensitivity.cpp
//
// To plot the results install gnuplot and type:
// gnuplot -e "plot 'sens.dat' using 1:2 with lines; pause -1"
Expand Down
4 changes: 2 additions & 2 deletions demos/OpenCL/RosenbrockFunction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@

// To run the demo please type:
// path/to/clang++ -Xclang -add-plugin -Xclang clad -Xclang -load -Xclang \
// path/to/libclad.so -I../include/ -framework opencl -x c++ -std=c++11 RosenbrockFunction.cpp
// path/to/libclad.so -I../include/ -framework opencl -std=c++11 RosenbrockFunction.cpp
//
// A typical invocation would be:
// ../../../../../obj/Debug+Asserts/bin/clang++ -Xclang -add-plugin -Xclang clad \
// -Xclang -load -Xclang ../../../../../obj/Debug+Asserts/lib/libclad.dylib \
// -I../../include/ -framework opencl -x c++ -std=c++11 RosenbrockFunction.cpp
// -I../../include/ -framework opencl -std=c++11 RosenbrockFunction.cpp

// Necessary for clad to work include
//#include "clad/Differentiator/Differentiator.h"
Expand Down
4 changes: 2 additions & 2 deletions demos/RosenbrockFunction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@

// To run the demo please type:
// path/to/clang++ -Xclang -add-plugin -Xclang clad -Xclang -load -Xclang \
// path/to/libclad.so -I../include/ -x c++ -std=c++11 RosenbrockFunction.cpp
// path/to/libclad.so -I../include/ -std=c++11 RosenbrockFunction.cpp
//
// A typical invocation would be:
// ../../../../obj/Debug+Asserts/bin/clang++ -Xclang -add-plugin -Xclang clad \
// -Xclang -load -Xclang ../../../../obj/Debug+Asserts/lib/libclad.dylib \
// -I../include/ -x c++ -std=c++11 RosenbrockFunction.cpp
// -I../include/ -std=c++11 RosenbrockFunction.cpp

// Necessary for clad to work include
#include "clad/Differentiator/Differentiator.h"
Expand Down
4 changes: 2 additions & 2 deletions demos/Templates.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@

// To run the demo please type:
// path/to/clang++ -Xclang -add-plugin -Xclang clad -Xclang -load -Xclang \
// path/to/libclad.so -I../include/ -x c++ -std=c++11 Templates.cpp
// path/to/libclad.so -I../include/ -std=c++11 Templates.cpp
//
// A typical invocation would be:
// ../../../../obj/Debug+Asserts/bin/clang++ -Xclang -add-plugin -Xclang clad \
// -Xclang -load -Xclang ../../../../obj/Debug+Asserts/lib/libclad.dylib \
// -I../include/ -x c++ -std=c++11 Templates.cpp
// -I../include/ -std=c++11 Templates.cpp

// Necessary for clad to work include
#include "clad/Differentiator/Differentiator.h"
Expand Down

0 comments on commit ab5a41f

Please sign in to comment.