Skip to content
Snippets Groups Projects
Commit cdf8a0b7 authored by Hashim Sharif's avatar Hashim Sharif
Browse files

Merging

parents 13108832 e59962ee
No related branches found
No related tags found
No related merge requests found
......@@ -22,7 +22,7 @@ HPVM is currently at version 0.5. For more about what HPVM is, see [our website]
The following components are required to be installed on your machine to build HPVM.
* GCC (>=5.1.0)
* CMake (>=3.4.3)
* CMake (>=3.17.0)
* Python (>=2.7)
* GNU Make (>=3.79.1)
* OpenCL (>=1.0.0) or CUDA (>=9.1, only required for GPU support)
......@@ -49,6 +49,17 @@ git clone https://gitlab.engr.illinois.edu/llvm/hpvm-release.git/
cd hpvm-release/hpvm
```
Before installing HPVM, some paths must be set for installation to succeed. The following variables in set_paths.sh must be set:
* CUDA_TOOLKIT_PATH --- Path to the CUDA toolkit
* CUDA_INCLUDE_PATH --- Path to the CUDA headers
* CUDA_LIB_PATH -- Path to CUDA libraries
Once the aforementioned variables in set_paths.sh have been specified, run the script.
```shell
source set_paths.sh
```
HPVM installer script can be used to download, configure and build HPVM along with LLVM and Clang.
```shell
bash install.sh
......
#!/bin/bash
# These paths can be modified by the HPVM user
CUDA_TOOLKIT_PATH=cuda-toolkit/9.1
CUDA_INCLUDE_PATH=/software/cuda-9.1/include
CUDA_LIB_PATH=/software/cuda-9.1/lib64/
echo "Setting environment paths..."
# Setting CUDA paths here
module load $CUDA_TOOLKIT_PATH
export CUDA_INCLUDE_PATH=$CUDA_INCLUDE_PATH
export CUDNN_PATH=$CUDA_LIB_PATH
export LIBRARY_PATH=$CUDA_LIB_PATH:$LIBRARY_PATH
export LD_LIBRARY_PATH=$CUDA_LIB_PATH:$LD_LIBRARY_PATH
echo "Finished setting environment paths!"
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