Skip to content
Snippets Groups Projects
Commit b3c536a6 authored by RafaeNoor's avatar RafaeNoor
Browse files

Fixed HPVM tutorial commands

parent c6e45870
No related branches found
No related tags found
No related merge requests found
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment