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

Incorporating Ying's suggestions

parent 4be7771c
No related branches found
No related tags found
No related merge requests found
...@@ -7,8 +7,8 @@ function(getTargets foundTargets dirs) ...@@ -7,8 +7,8 @@ function(getTargets foundTargets dirs)
if(targetlist) if(targetlist)
foreach(target ${targetlist}) foreach(target ${targetlist})
get_target_property(target_type ${target} TYPE) get_target_property(target_type ${target} TYPE)
if ((${target_type} STREQUAL "EXECUTABLE") if ((${target_type} STREQUAL "EXECUTABLE")
OR (${target_type} STREQUAL "MODULE_LIBRARY") OR (${target_type} STREQUAL "MODULE_LIBRARY")
OR (${target_type} STREQUAL "STATIC_LIBRARY")) OR (${target_type} STREQUAL "STATIC_LIBRARY"))
list(APPEND targets ${target}) list(APPEND targets ${target})
endif() endif()
...@@ -33,8 +33,8 @@ endfunction() ...@@ -33,8 +33,8 @@ endfunction()
if (NOT CMAKE_CXX_COMPILER_ID STREQUAL "GNU") if (NOT CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
message(FATAL_ERROR "Please use GCC as compiler!") message(FATAL_ERROR "Please use GCC as compiler!")
endif() endif()
if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 5.1) if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 7.0)
message(FATAL_ERROR "ONLY GCC VERSION 5.1 or GREATER IS SUPPORTED!") message(FATAL_ERROR "ONLY GCC VERSION 7.0 or GREATER IS SUPPORTED!")
endif() endif()
include(CheckLanguage) include(CheckLanguage)
......
...@@ -6,7 +6,7 @@ Dependencies ...@@ -6,7 +6,7 @@ Dependencies
* The following components are required for building HPVM: * The following components are required for building HPVM:
* GCC (>=5.1) * GCC (>=7.0)
* CMake (>=3.17) * CMake (>=3.17)
...@@ -114,7 +114,7 @@ First, checkout HPVM and navigate to ``<root>/hpvm``: ...@@ -114,7 +114,7 @@ First, checkout HPVM and navigate to ``<root>/hpvm``:
.. code-block:: shell .. code-block:: shell
git clone --recursive -b main https://gitlab.engr.illinois.edu/llvm/hpvm-release.git git clone --recursive -b main https://gitlab.engr.illinois.edu/llvm/hpvm-release.git
cd hpvm/hpvm/ cd hpvm-release/hpvm/
If you have already cloned the repository without using ``--recursive``, If you have already cloned the repository without using ``--recursive``,
the directory ``hpvm/projects/predtuner`` should be empty, the directory ``hpvm/projects/predtuner`` should be empty,
......
Porting a Program from C to HPVM-C Porting a Program from C to HPVM-C
================================== ==================================
The following represents the required steps to port a regular C program into an HPVM program with HPVM-C. These steps are described at a high level; for more detail, please see `hpvm-cava </hpvm/benchmarks/general_benchmarks/hpvm-cava>`_ provided in `general benchmarks </hpvm/benchmarks/general_benchmarks>`_. The following represents the required steps to port a regular C program into an HPVM program with HPVM-C. These steps are described at a high level; for more detail, please see `hpvm-cava <https://gitlab.engr.illinois.edu/llvm/hpvm-release/-/tree/main/hpvm/benchmarks/general_benchmarks/hpvm-cava>`_ provided in `general benchmarks <https://gitlab.engr.illinois.edu/llvm/hpvm-release/-/tree/main/hpvm/benchmarks/general_benchmarks>`_.
* Separate the computation that will become a kernel into its own (leaf node) function and add the attributes and target hint. * Separate the computation that will become a kernel into its own (leaf node) function and add the attributes and target hint.
* Create a level 1 wrapper node function that will describe the thread-level parallelism (for the GPU). The node will: * Create a level 1 wrapper node function that will describe the thread-level parallelism (for the GPU). The node will:
......
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