diff --git a/hpvm/CMakeLists.txt b/hpvm/CMakeLists.txt index 7acf2a50dbaa3ac5a2feb6e0b8d6b990d1f56000..52ab9751ac8c4552a3596dd7ab702380819eed74 100644 --- a/hpvm/CMakeLists.txt +++ b/hpvm/CMakeLists.txt @@ -7,8 +7,8 @@ function(getTargets foundTargets dirs) if(targetlist) foreach(target ${targetlist}) get_target_property(target_type ${target} TYPE) - if ((${target_type} STREQUAL "EXECUTABLE") - OR (${target_type} STREQUAL "MODULE_LIBRARY") + if ((${target_type} STREQUAL "EXECUTABLE") + OR (${target_type} STREQUAL "MODULE_LIBRARY") OR (${target_type} STREQUAL "STATIC_LIBRARY")) list(APPEND targets ${target}) endif() @@ -33,8 +33,8 @@ endfunction() if (NOT CMAKE_CXX_COMPILER_ID STREQUAL "GNU") message(FATAL_ERROR "Please use GCC as compiler!") endif() -if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 5.1) - message(FATAL_ERROR "ONLY GCC VERSION 5.1 or GREATER IS SUPPORTED!") +if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 7.0) + message(FATAL_ERROR "ONLY GCC VERSION 7.0 or GREATER IS SUPPORTED!") endif() include(CheckLanguage) diff --git a/hpvm/docs/build-hpvm.rst b/hpvm/docs/build-hpvm.rst index 63c290e490aed8b61ae9da203746646037c9e3fe..1a0dc7e88d2ae1dc6df7d2d40b1d914b28438ecd 100644 --- a/hpvm/docs/build-hpvm.rst +++ b/hpvm/docs/build-hpvm.rst @@ -6,7 +6,7 @@ Dependencies * The following components are required for building HPVM: - * GCC (>=5.1) + * GCC (>=7.0) * CMake (>=3.17) @@ -114,7 +114,7 @@ First, checkout HPVM and navigate to ``<root>/hpvm``: .. code-block:: shell 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``, the directory ``hpvm/projects/predtuner`` should be empty, diff --git a/hpvm/docs/how_to_guides/port-to-hpvm-c.rst b/hpvm/docs/how_to_guides/port-to-hpvm-c.rst index 19923c51dbb94a74fccb579d67f95c5498228f48..697737f419aed3cd16ed78ddb530b0740aa923b0 100644 --- a/hpvm/docs/how_to_guides/port-to-hpvm-c.rst +++ b/hpvm/docs/how_to_guides/port-to-hpvm-c.rst @@ -1,7 +1,7 @@ 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. * Create a level 1 wrapper node function that will describe the thread-level parallelism (for the GPU). The node will: