File tree Expand file tree Collapse file tree 4 files changed +39
-8
lines changed
AI-and-Analytics/End-to-end-Workloads/LidarObjectDetection-PointPillars Expand file tree Collapse file tree 4 files changed +39
-8
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,8 @@ include(CMakePackageConfigHelpers)
55
66set (CXX_STANDARD_REQUIRED ON )
77set (CMAKE_CXX_STANDARD 17)
8- set (CMAKE_CXX_COMPILER dpcpp)
8+ set (CMAKE_CXX_COMPILER icpx)
9+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsycl" )
910
1011project (LidarObjectDetection-PointPillars VERSION 1.0.0)
1112
@@ -14,9 +15,9 @@ project(LidarObjectDetection-PointPillars VERSION 1.0.0)
1415############################################################
1516find_package (OpenVINO REQUIRED)
1617
17- find_path (SYCL_HEADERS CL/sycl.hpp PATHS $ENV{ONEAPI_ROOT} /compiler/latest/linux/ include /sycl PATH_SUFFIXES / NO_CMAKE_FIND_ROOT_PATH NO_CMAKE_SYSTEM_PATH NO_DEFAULT_PATH)
18- find_path (DPCPP_HEADERS oneapi/dpl/iterator PATHS $ENV{ONEAPI_ROOT} /dpl/latest/linux/ include PATH_SUFFIXES / NO_CMAKE_FIND_ROOT_PATH NO_CMAKE_SYSTEM_PATH NO_DEFAULT_PATH)
19- find_library (SYCL_LIB sycl PATHS $ENV{ONEAPI_ROOT} /compiler/latest/linux PATH_SUFFIXES lib NO_CMAKE_FIND_ROOT_PATH NO_CMAKE_SYSTEM_PATH NO_DEFAULT_PATH)
18+ find_path (SYCL_HEADERS CL/sycl.hpp PATHS $ENV{ONEAPI_ROOT} /compiler/latest/include /sycl PATH_SUFFIXES / NO_CMAKE_FIND_ROOT_PATH NO_CMAKE_SYSTEM_PATH NO_DEFAULT_PATH)
19+ find_path (DPCPP_HEADERS oneapi/dpl/iterator PATHS $ENV{ONEAPI_ROOT} /dpl/latest/include PATH_SUFFIXES / NO_CMAKE_FIND_ROOT_PATH NO_CMAKE_SYSTEM_PATH NO_DEFAULT_PATH)
20+ find_library (SYCL_LIB sycl PATHS $ENV{ONEAPI_ROOT} /compiler/latest PATH_SUFFIXES lib NO_CMAKE_FIND_ROOT_PATH NO_CMAKE_SYSTEM_PATH NO_DEFAULT_PATH)
2021
2122if (NOT DPCPP_HEADERS)
2223 message (FATAL_ERROR "No DPCPP Headers for oneAPI found. Please check the environment variable ONEAPI_ROOT" )
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ # Build and install OpenCL ICD Loader
3+ apt -y install ruby-full
4+
5+ git clone --recursive https://github.com/KhronosGroup/OpenCL-CLHPP
6+ git clone https://github.com/KhronosGroup/OpenCL-ICD-Loader
7+ git clone https://github.com/KhronosGroup/OpenCL-Headers
8+
9+ cmake -D CMAKE_INSTALL_PREFIX=./OpenCL-Headers/install -S ./OpenCL-Headers -B ./OpenCL-Headers/build
10+ cmake --build ./OpenCL-Headers/build --target install
11+
12+ 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
13+ cmake --build ./OpenCL-ICD-Loader/build --target install
14+
15+ 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
16+ cmake --build ./OpenCL-CLHPP/build --target install
17+
18+ export OpenCLHeadersCpp_DIR=$PWD /OpenCL-CLHPP/build/OpenCLHeadersCpp
19+
20+ # Install OpenVINO 2023.1.0 and Boost libraries
21+ wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
22+ apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
23+ rm GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
24+ echo " deb https://apt.repos.intel.com/openvino/2023 ubuntu22 main" | sudo tee /etc/apt/sources.list.d/intel-openvino-2023.list
25+
26+ apt update
27+ apt -y install openvino-2023.1.0 libboost-all-dev
28+
Original file line number Diff line number Diff line change 1111 "ciTests" : {
1212 "linux" : [{
1313 "steps" : [
14- " mkdir build" ,
14+ " ./get_dependencies.sh" ,
15+ " mkdir build" ,
1516 " cd build" ,
1617 " cmake .." ,
17- " make"
18+ " make" ,
19+ " ./example.exe"
1820 ]
1921 }]
2022 },
2123 "expertise" : " Reference Designs and End to End"
22- }
24+ }
Original file line number Diff line number Diff line change 2424#include < thread>
2525#include " devicemanager/devicemanager.hpp"
2626
27- #include < CL/ sycl/backend/opencl.hpp>
27+ #include < sycl/backend/opencl.hpp>
2828
2929namespace pointpillars {
3030PointPillars::PointPillars (const float score_threshold, const float nms_threshold, const PointPillarsConfig &config)
You can’t perform that action at this time.
0 commit comments