- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Intel GPU info:
$ lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 630 (Desktop)
01:00.0 VGA compatible controller: NVIDIA Corporation Device 2504 (rev a1)
02:00.0 VGA compatible controller: NVIDIA Corporation GP104 [GeForce GTX 1080] (rev a1)
Docker used: nvcr.io/nvidia/tensorrt:21.02-py3
Openvino installed: openvino_2021.4.752
The following steps have been performed:
1. To enter the docker:
$ docker run --gpus all -it -m 16GB -v /dev/bus/usb/:/dev/bus/usb/ --shm-size=1g --ulimit memlock=-1 --ulimit stack=67108864 --rm --net=host -e DISPLAY= --device /dev/dri/:/dev/dri/ --device-cgroup-rule='c 189:* rmw' -w /opt/intel/ --user 0 --name trt_21.02_docker_openvino nvcr.io/nvidia/tensorrt:21.02-py3-installed_openvino
2. Inside the docker:
# sudo apt update
# sudo apt install -y build-essential
# export DISPLAY=192.168.10.7:55 (Note: <System IP>:<VNC display number>, to enable displays, followed by the command $ xhost+ on 192.168.10.7 machine)
# cd /opt/intel/openvino_2021/install_dependencies/
# sudo -E ./install_openvino_dependencies.sh
# sudo -E ./install_NEO_OCL_driver.sh
The output of last command, i.e., installing NEO OCL driver is:
Intel® Graphics Compute Runtime for oneAPI Level Zero and OpenCL™ Driver installer
Checking current driver version...
dpkg-query: no packages found matching intel-opencl
dpkg-query: no packages found matching intel-opencl-icd
Checking processor generation...
Starting installation...
This script will download and install Intel® Graphics Compute Runtime for oneAPI Level Zero and OpenCL™ Driver 19.41.14441,
that was used to validate this OpenVINO™ package.
In case if you already have the driver - script will try to remove it.
Want to proceed? (y/n): y
Looking for previously installed user-mode driver...
dpkg-query: no packages found matching intel-opencl
dpkg-query: no packages found matching intel-opencl-icd
dpkg-query: no packages found matching intel-ocloc
dpkg-query: no packages found matching intel-gmmlib
dpkg-query: no packages found matching intel-igc-core
dpkg-query: no packages found matching intel-igc-opencl
Installing prerequisites...
apt-get -y update
Hit:1 http://security.ubuntu.com/ubuntu focal-security InRelease
Hit:2 http://archive.ubuntu.com/ubuntu focal InRelease
Hit:3 http://archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:4 http://archive.ubuntu.com/ubuntu focal-backports InRelease
Reading package lists... Done
apt-get -y install --no-install-recommends libnuma1 ocl-icd-libopencl1
Reading package lists... Done
Building dependency tree
Reading state information... Done
libnuma1 is already the newest version (2.0.12-1).
ocl-icd-libopencl1 is already the newest version (2.2.11-1ubuntu1).
ocl-icd-libopencl1 set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 138 not upgraded.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 104k 100 104k 0 0 99k 0 0:00:01 0:00:01 --:--:-- 99k
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 9.7M 100 9.7M 0 0 3503k 0 0:00:02 0:00:02 --:--:-- 5315k
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 18.0M 100 18.0M 0 0 4424k 0 0:00:04 0:00:04 --:--:-- 4823k
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 685k 100 685k 0 0 384k 0 0:00:01 0:00:01 --:--:-- 3848k
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 91888 100 91888 0 0 93667 0 --:--:-- --:--:-- --:--:-- 93667
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 499 100 499 0 0 314 0 0:00:01 0:00:01 --:--:-- 411
intel-gmmlib_19.3.2_amd64.deb: OK
intel-igc-core_1.0.2597_amd64.deb: OK
intel-igc-opencl_1.0.2597_amd64.deb: OK
intel-ocloc_19.41.14441_amd64.deb: OK
intel-opencl_19.41.14441_amd64.deb: OK
Installing user mode driver...
dpkg -i intel*.deb
Selecting previously unselected package intel-gmmlib.
(Reading database ... 45276 files and directories currently installed.)
Preparing to unpack intel-gmmlib_19.3.2_amd64.deb ...
Unpacking intel-gmmlib (19.3.2) ...
Selecting previously unselected package intel-igc-core.
Preparing to unpack intel-igc-core_1.0.2597_amd64.deb ...
Unpacking intel-igc-core (1.0.2597) ...
Selecting previously unselected package intel-igc-opencl.
Preparing to unpack intel-igc-opencl_1.0.2597_amd64.deb ...
Unpacking intel-igc-opencl (1.0.2597) ...
Selecting previously unselected package intel-ocloc.
Preparing to unpack intel-ocloc_19.41.14441_amd64.deb ...
Unpacking intel-ocloc (19.41.14441) ...
Selecting previously unselected package intel-opencl.
Preparing to unpack intel-opencl_19.41.14441_amd64.deb ...
Unpacking intel-opencl (19.41.14441) ...
Setting up intel-gmmlib (19.3.2) ...
Setting up intel-igc-core (1.0.2597) ...
Setting up intel-igc-opencl (1.0.2597) ...
Setting up intel-ocloc (19.41.14441) ...
Setting up intel-opencl (19.41.14441) ...
Processing triggers for libc-bin (2.31-0ubuntu9.1) ...
/opt/intel/openvino_2021/install_dependencies
Adding root to the video group...
Adding root to the render group...
usermod: group 'render' does not exist
WARNING: unable to add root to the render group
Installation completed successfully.
Next steps:
Add OpenCL users to the video and render group: 'sudo usermod -a -G video,render USERNAME'
e.g. if the user running OpenCL host applications is foo, run: sudo usermod -a -G video,render foo
Current user has been already added to the video and render group
If you use 8th Generation Intel® Core™ processor, add:
i915.alpha_support=1
to the 4.14 kernel command line, in order to enable OpenCL functionality for this platform.
Next, Openvino environment is initialized:
# source /opt/intel/openvino_2021/bin/setupvars.sh
[setupvars.sh] OpenVINO environment initialized
Next, demo script is run:
# cd /opt/intel/openvino_2021/deployment_tools/demo/
# ./demo_security_barrier_camera.sh -d GPU
This installs dependencies and intel models, the last command ends with:
Build Inference Engine demos
-- The C compiler identification is GNU 9.3.0
-- The CXX compiler identification is GNU 9.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found OpenCV: /opt/intel/openvino_2021.4.752/opencv (found version "4.5.3") found components: core highgui videoio imgproc imgcodecs gapi
-- Looking for C++ include unistd.h
-- Looking for C++ include unistd.h - found
-- Looking for C++ include stdint.h
-- Looking for C++ include stdint.h - found
-- Looking for C++ include inttypes.h
-- Looking for C++ include inttypes.h - found
-- Looking for C++ include sys/types.h
-- Looking for C++ include sys/types.h - found
-- Looking for C++ include sys/stat.h
-- Looking for C++ include sys/stat.h - found
-- Looking for C++ include fnmatch.h
-- Looking for C++ include fnmatch.h - found
-- Looking for C++ include stddef.h
-- Looking for C++ include stddef.h - found
-- Check size of uint32_t
-- Check size of uint32_t - done
-- Looking for strtoll
-- Looking for strtoll - found
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Configuring done
-- Generating done
-- Build files have been written to: /root/inference_engine_demos_build
Scanning dependencies of target monitors
Scanning dependencies of target gflags_nothreads_static
[ 14%] Building CXX object common/cpp/monitors/CMakeFiles/monitors.dir/src/cpu_monitor.cpp.o
[ 14%] Building CXX object common/cpp/monitors/CMakeFiles/monitors.dir/src/memory_monitor.cpp.o
[ 14%] Building CXX object thirdparty/gflags/CMakeFiles/gflags_nothreads_static.dir/src/gflags_reporting.cc.o
[ 21%] Building CXX object thirdparty/gflags/CMakeFiles/gflags_nothreads_static.dir/src/gflags.cc.o
[ 28%] Building CXX object common/cpp/monitors/CMakeFiles/monitors.dir/src/presenter.cpp.o
[ 35%] Building CXX object thirdparty/gflags/CMakeFiles/gflags_nothreads_static.dir/src/gflags_completions.cc.o
[ 42%] Linking CXX static library ../../intel64/Release/lib/libgflags_nothreads.a
[ 42%] Built target gflags_nothreads_static
Scanning dependencies of target utils
[ 57%] Building CXX object common/cpp/utils/CMakeFiles/utils.dir/src/images_capture.cpp.o
[ 57%] Building CXX object common/cpp/utils/CMakeFiles/utils.dir/src/config_factory.cpp.o
[ 64%] Building CXX object common/cpp/utils/CMakeFiles/utils.dir/src/performance_metrics.cpp.o
[ 64%] Building CXX object common/cpp/utils/CMakeFiles/utils.dir/src/args_helper.cpp.o
[ 71%] Building CXX object common/cpp/utils/CMakeFiles/utils.dir/src/kuhn_munkres.cpp.o
[ 78%] Linking CXX static library ../../../intel64/Release/lib/libmonitors.a
[ 78%] Built target monitors
[ 85%] Linking CXX static library ../../../intel64/Release/lib/libutils.a
[ 85%] Built target utils
Scanning dependencies of target security_barrier_camera_demo
[ 92%] Building CXX object security_barrier_camera_demo/cpp/CMakeFiles/security_barrier_camera_demo.dir/main.cpp.o
[100%] Linking CXX executable ../../intel64/Release/security_barrier_camera_demo
[100%] Built target security_barrier_camera_demo
###################################################
Run Inference Engine security_barrier_camera demo
Run ./security_barrier_camera_demo -d GPU -d_va GPU -d_lpr GPU -i /opt/intel/openvino_2021.4.752/deployment_tools/demo/car_1.bmp -m /root/openvino_models/ir/intel/vehicle-license-plate-detection-barrier-0106/FP16/vehicle-license-plate-detection-barrier-0106.xml -m_lpr /root/openvino_models/ir/intel/license-plate-recognition-barrier-0001/FP16/license-plate-recognition-barrier-0001.xml -m_va /root/openvino_models/ir/intel/vehicle-attributes-recognition-barrier-0039/FP16/vehicle-attributes-recognition-barrier-0039.xml
[ INFO ] InferenceEngine: IE version ......... 2021.4
Build ........... 2
[ INFO ] Files were added: 1
[ INFO ] /opt/intel/openvino_2021.4.752/deployment_tools/demo/car_1.bmp
[ INFO ] Loading device GPU
[ ERROR ] Failed to create plugin /opt/intel/openvino_2021.4.752/deployment_tools/inference_engine/lib/intel64/libclDNNPlugin.so for device GPU
Please, check your environment
[CLDNN ERROR]. clGetPlatformIDs error -1001
Error on or near line 198; exiting with status 1
Thus, the following errors have been encountered:
[ ERROR ] Failed to create plugin /opt/intel/openvino_2021.4.752/deployment_tools/inference_engine/lib/intel64/libclDNNPlugin.so for device GPU
Please, check your environment
[CLDNN ERROR]. clGetPlatformIDs error -1001
Below is LD_LIBRARY_PATH (inside docker):
# echo $LD_LIBRARY_PATH
/opt/intel/openvino_2021/data_processing/dl_streamer/lib:/opt/intel/openvino_2021/data_processing/gstreamer/lib:/opt/intel/openvino_2021/opencv/lib:/opt/intel/openvino_2021/deployment_tools/ngraph/lib:/opt/intel/openvino_2021/deployment_tools/inference_engine/external/tbb/lib::/opt/intel/openvino_2021/deployment_tools/inference_engine/external/hddl/lib:/opt/intel/openvino_2021/deployment_tools/inference_engine/external/omp/lib:/opt/intel/openvino_2021/deployment_tools/inference_engine/external/gna/lib:/opt/intel/openvino_2021/deployment_tools/inference_engine/external/mkltiny_lnx/lib:/opt/intel/openvino_2021/deployment_tools/inference_engine/lib/intel64:/usr/local/cuda/compat/lib:/usr/local/nvidia/lib:/usr/local/nvidia/lib64:/opt/intel/openvino_2021/
Requesting for solution in detail.
Note - The same series of steps have worked, and loaded Intel GPU with the same docker earlier (once). However, repeating second time doesn't work.
Thanks,
Anega
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I would like to close this post as I have found a solution, thus requesting Intel community team to delete it.
Thanks,
Anega
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Anega,
This thread will no longer be monitored since this issue has been resolved and you requested to close the thread. Please submit a new question if you need any additional information from Intel.
Regards,
Aznie
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page