diff --git a/AI-and-Analytics/End-to-end-Workloads/LidarObjectDetection-PointPillars/get_dependencies.sh b/AI-and-Analytics/End-to-end-Workloads/LidarObjectDetection-PointPillars/get_dependencies.sh index 89021936bd..ac14534c76 100755 --- a/AI-and-Analytics/End-to-end-Workloads/LidarObjectDetection-PointPillars/get_dependencies.sh +++ b/AI-and-Analytics/End-to-end-Workloads/LidarObjectDetection-PointPillars/get_dependencies.sh @@ -1,18 +1,22 @@ #! /bin/bash -# Build and install OpenCL ICD Loader +# Build and install OpenCL Headers and OpenCL-ICD-Loader apt -y install ruby-full git clone --recursive https://github.com/KhronosGroup/OpenCL-CLHPP git clone https://github.com/KhronosGroup/OpenCL-ICD-Loader git clone https://github.com/KhronosGroup/OpenCL-Headers -cmake -D CMAKE_INSTALL_PREFIX=./OpenCL-Headers/install -S ./OpenCL-Headers -B ./OpenCL-Headers/build +cmake -D CMAKE_INSTALL_PREFIX=./OpenCL-Headers/install -S ./OpenCL-Headers -B ./OpenCL-Headers/build cmake --build ./OpenCL-Headers/build --target install -cmake -D CMAKE_PREFIX_PATH=`$PWD`/OpenCL-Headers/install -D CMAKE_INSTALL_PREFIX=./OpenCL-ICD-Loader/install -S ./OpenCL-ICD-Loader -B ./OpenCL-ICD-Loader/build +export OpenCLHeaders_DIR=$PWD/OpenCL-Headers/build/OpenCLHeaders + +cmake -D CMAKE_PREFIX_PATH=`$PWD`/OpenCL-Headers/install -D CMAKE_INSTALL_PREFIX=./OpenCL-ICD-Loader/install -S ./OpenCL-ICD-Loader -B ./OpenCL-ICD-Loader/build cmake --build ./OpenCL-ICD-Loader/build --target install -cmake -D CMAKE_PREFIX_PATH="`$PWD`/OpenCL-Headers/install;`$PWD`/OpenCL-ICD-Loader/install" -D CMAKE_INSTALL_PREFIX=./OpenCL-CLHPP/install -S ./OpenCL-CLHPP -B ./OpenCL-CLHPP/build +export OpenCLICDLoader_DIR=$PWD/OpenCL-ICD-Loader/build/OpenCLICDLoader + +cmake -D CMAKE_PREFIX_PATH="`$PWD`/OpenCL-Headers/install;`$PWD`/OpenCL-ICD-Loader/install" -D CMAKE_INSTALL_PREFIX=./OpenCL-CLHPP/install -S ./OpenCL-CLHPP -B ./OpenCL-CLHPP/build cmake --build ./OpenCL-CLHPP/build --target install export OpenCLHeadersCpp_DIR=$PWD/OpenCL-CLHPP/build/OpenCLHeadersCpp diff --git a/AI-and-Analytics/End-to-end-Workloads/LidarObjectDetection-PointPillars/sample.json b/AI-and-Analytics/End-to-end-Workloads/LidarObjectDetection-PointPillars/sample.json index c1e39c729e..48bb878ccf 100644 --- a/AI-and-Analytics/End-to-end-Workloads/LidarObjectDetection-PointPillars/sample.json +++ b/AI-and-Analytics/End-to-end-Workloads/LidarObjectDetection-PointPillars/sample.json @@ -11,14 +11,15 @@ "ciTests": { "linux": [{ "steps": [ - "./get_dependencies.sh", - "mkdir build", + "source ./get_dependencies.sh", + "mkdir build", "cd build", "cmake ..", "make", - "./example.exe" + "./example.exe" ] }] }, "expertise": "Reference Designs and End to End" } +