diff --git a/hpvm/docs/tutorials/1-heterocpp.rst b/hpvm/docs/tutorials/1-heterocpp.rst index fdec2c435dc9cc37a8c876dbef71214ec36bbe7c..fd97d5b3fcdd1d2d199641d93da8594fecb1b653 100644 --- a/hpvm/docs/tutorials/1-heterocpp.rst +++ b/hpvm/docs/tutorials/1-heterocpp.rst @@ -187,7 +187,7 @@ To compile the matrix multiplication program to the CPU we run the following com .. code:: console - hpvm-clang -DDEVICE=CPU_TARGET --hetero-cc --hpvm-target -cpu src/matmul.cc -o src/matmul.cpu + hpvm-clang -DDEVICE=CPU_TARGET --hetero-cc --hpvm-target cpu src/matmul.cc src/matmul.cpu The above command would run the ``Hetero-C++`` frontend and the ``HPVM`` Backend transformations to generate the executable ``src/matmul.cpu``. The `-DDEVICE` preprocessor directive simply sets the `__hetero_hint` argument to specify the node should be compiled to the CPU. @@ -201,7 +201,7 @@ To compile the matrix multiplication program to the GPU we run the following com .. code:: console - hpvm-clang -DDEVICE=GPU_TARGET --hetero-cc --hpvm-target gpu src/matmul.cc -o src/matmul.gpu + hpvm-clang -DDEVICE=GPU_TARGET --hetero-cc --hpvm-target gpu src/matmul.cc src/matmul.gpu @@ -214,7 +214,7 @@ To compile the matrix multiplication program to the FPGA we run the following co .. code:: console - hpvm-clang -DDEVICE=FPGA_TARGET --hetero-cc --hpvm-target gpu src/matmul.cc -o src/matmul.FPGA + hpvm-clang -DDEVICE=FPGA_TARGET --hetero-cc --hpvm-target fpga src/matmul.cc src/matmul.FPGA The above command would run the ``Hetero-C++`` frontend and the ``HPVM`` Backend transformations to generate the executable ``src/matmul.fpga`` along with the OpenCL kernel which will execute on the FPGA.