[VENTUS][fix] Add files to install package && add VENTUS_INSTALL_PREFIX enviroments variable
Add VENTUS_INSTALL_PREFIX for runtime use(pocl)
This commit is contained in:
parent
b32b529523
commit
18f624b661
|
@ -49,9 +49,11 @@ You can dive into `build-ventus.sh` file to see the detailed information about b
|
|||
|
||||
### 3: Bridge icd loader
|
||||
|
||||
Run `export LD_LIBRARY_PATH=<path_to>/ventus-llvm/install/lib` to tell OpenCL application to use your own built `libOpenCL.so`, also to correctly locate LLVM shared libraries
|
||||
Run `export VENTUS_INSTALL_PREFIX=<path_to_install>` to set `VENTUS_INSTALL_PREFIX` environment variable(system environment variable recommended)
|
||||
|
||||
Run `export OCL_ICD_VENDORS=<path_to>/libpocl.so` to tell ocl icd loader where the icd driver is.
|
||||
Run `export LD_LIBRARY_PATH=${VENTUS_INSTALL_PREFIX}/lib` to tell OpenCL application to use your own built `libOpenCL.so`, also to correctly locate LLVM shared libraries
|
||||
|
||||
Run `export OCL_ICD_VENDORS=${VENTUS_INSTALL_PREFIX}/lib/libpocl.so` to tell ocl icd loader where the icd driver is.
|
||||
|
||||
Finally, run `export POCL_DEVICES="ventus"` to tell pocl driver which device is available(should we set ventus as default device?).
|
||||
|
||||
|
|
|
@ -2,10 +2,7 @@
|
|||
|
||||
# This script will be used by pocl
|
||||
|
||||
# echo "converting object file:"
|
||||
# echo $1
|
||||
script_dir=$(cd "$(dirname "$0")" && pwd)
|
||||
export PATH=$script_dir/install/bin:$PATH
|
||||
export PATH=${VENTUS_INSTALL_PREFIX}/bin:$PATH
|
||||
if [[ -f $1.vmem ]];then
|
||||
rm $1.vmem
|
||||
fi
|
||||
|
|
|
@ -1370,3 +1370,11 @@ endif()
|
|||
if (LLVM_INCLUDE_UTILS AND LLVM_INCLUDE_TOOLS)
|
||||
add_subdirectory(utils/llvm-locstats)
|
||||
endif()
|
||||
|
||||
install(DIRECTORY ../utils/ldscripts
|
||||
DESTINATION "${CMAKE_INSTALL_PREFIX}/lib"
|
||||
)
|
||||
|
||||
install(FILES ../assemble.sh
|
||||
DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/scripts"
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue