Skip to content

Commit 922915a

Browse files
Merge pull request #258 from giorgio-arena/patch-1
Update 00_introduction.dox
2 parents bf8b01d + 869d424 commit 922915a

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

docs/00_introduction.dox

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -514,14 +514,16 @@ To cross compile the examples with the Graph API, such as graph_lenet.cpp, you n
514514

515515
i.e. to cross compile the "graph_lenet" example for Linux 32bit:
516516

517-
arm-linux-gnueabihf-g++ examples/graph_lenet.cpp utils/Utils.cpp -I. -Iinclude -std=c++11 -mfpu=neon -L. -larm_compute_graph -larm_compute -larm_compute_core -lOpenCL -o graph_lenet -DARM_COMPUTE_CL
517+
arm-linux-gnueabihf-g++ examples/graph_lenet.cpp utils/Utils.cpp utils/GraphUtils.cpp -I. -Iinclude -std=c++11 -mfpu=neon -L. -larm_compute_graph -larm_compute -larm_compute_core -lOpenCL -o graph_lenet -DARM_COMPUTE_CL
518518

519519
i.e. to cross compile the "graph_lenet" example for Linux 64bit:
520520

521-
aarch64-linux-gnu-g++ examples/graph_lenet.cpp utils/Utils.cpp -I. -Iinclude -std=c++11 -L. -larm_compute_graph -larm_compute -larm_compute_core -lOpenCL -o graph_lenet -DARM_COMPUTE_CL
521+
aarch64-linux-gnu-g++ examples/graph_lenet.cpp utils/Utils.cpp utils/GraphUtils.cpp -I. -Iinclude -std=c++11 -L. -larm_compute_graph -larm_compute -larm_compute_core -lOpenCL -o graph_lenet -DARM_COMPUTE_CL
522522

523523
(notice the only difference with the 32 bit command is that we don't need the -mfpu option and the compiler's name is different)
524524

525+
@note If compiling using static libraries, this order must be followed when linking: arm_compute_graph_static, arm_compute, arm_compute_core
526+
525527
To compile natively (i.e directly on an ARM device) for NEON for Linux 32bit:
526528

527529
g++ examples/neon_convolution.cpp utils/Utils.cpp -I. -Iinclude -std=c++11 -mfpu=neon -larm_compute -larm_compute_core -o neon_convolution
@@ -541,14 +543,16 @@ To compile natively (i.e directly on an ARM device) the examples with the Graph
541543

542544
i.e. to cross compile the "graph_lenet" example for Linux 32bit:
543545

544-
g++ examples/graph_lenet.cpp utils/Utils.cpp -I. -Iinclude -std=c++11 -mfpu=neon -L. -larm_compute_graph -larm_compute -larm_compute_core -lOpenCL -o graph_lenet -DARM_COMPUTE_CL
546+
g++ examples/graph_lenet.cpp utils/Utils.cpp utils/GraphUtils.cpp -I. -Iinclude -std=c++11 -mfpu=neon -L. -larm_compute_graph -larm_compute -larm_compute_core -lOpenCL -o graph_lenet -DARM_COMPUTE_CL
545547

546548
i.e. to cross compile the "graph_lenet" example for Linux 64bit:
547549

548-
g++ examples/graph_lenet.cpp utils/Utils.cpp -I. -Iinclude -std=c++11 L. -larm_compute_graph -larm_compute -larm_compute_core -lOpenCL -o graph_lenet -DARM_COMPUTE_CL
550+
g++ examples/graph_lenet.cpp utils/Utils.cpp utils/GraphUtils.cpp -I. -Iinclude -std=c++11 L. -larm_compute_graph -larm_compute -larm_compute_core -lOpenCL -o graph_lenet -DARM_COMPUTE_CL
549551

550552
(notice the only difference with the 32 bit command is that we don't need the -mfpu option)
551553

554+
@note If compiling using static libraries, this order must be followed when linking: arm_compute_graph_static, arm_compute, arm_compute_core
555+
552556
@note These two commands assume libarm_compute.so is available in your library path, if not add the path to it using -L
553557

554558
To run the built executable simply run:

0 commit comments

Comments
 (0)