Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XRT build fails on a system with CUDA #6454

Open
vkomenda opened this issue Mar 20, 2022 · 1 comment
Open

XRT build fails on a system with CUDA #6454

vkomenda opened this issue Mar 20, 2022 · 1 comment

Comments

@vkomenda
Copy link
Contributor

Nvidia CUDA's package nvidia-libopencl1 (version 470.103) doesn't provide a pkg-config file, unlike ocl-icd-opencl-dev. The two packages conflict with each other. The script build/build.sh fails to find the Nvidia OpenCL library.

-- Checking for module 'OpenCL'
--   No package 'OpenCL' found
CMake Error at /home/vk/.local/lib/python3.9/site-packages/cmake/data/share/cmake-3.22/Modules/FindPkgConfig.cmake:603 (message):
  A required package was not found
Call Stack (most recent call first):
  /home/vk/.local/lib/python3.9/site-packages/cmake/data/share/cmake-3.22/Modules/FindPkgConfig.cmake:825 (_pkg_check_modules_internal)
  CMake/nativeLnx.cmake:26 (pkg_check_modules)
  CMakeLists.txt:120 (include)

These are the files in nvidia-libopencl1:

$ sudo dpkg --listfiles nvidia-libopencl1
/.
/usr
/usr/lib
/usr/lib/x86_64-linux-gnu
/usr/lib/x86_64-linux-gnu/libOpenCL.so.1.0.0
/usr/share
/usr/share/bug
/usr/share/bug/nvidia-libopencl1
/usr/share/bug/nvidia-libopencl1/control
/usr/share/bug/nvidia-libopencl1/script
/usr/share/doc
/usr/share/doc/nvidia-libopencl1
/usr/share/doc/nvidia-libopencl1/changelog.Debian.gz
/usr/share/doc/nvidia-libopencl1/changelog.gz
/usr/share/doc/nvidia-libopencl1/copyright
/usr/share/lintian
/usr/share/lintian/overrides
/usr/share/lintian/overrides/nvidia-libopencl1
/usr/lib/x86_64-linux-gnu/libOpenCL.so.1
@stsoe
Copy link
Collaborator

stsoe commented Apr 7, 2022

@vkomenda What is the recommended fix? Is it to use find_package ? I can't really recall why we are using pkg_check_modules?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants