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 crashes when accessed through both OpenCL and xrt:: #7226

Open
keryell opened this issue Dec 14, 2022 · 1 comment
Open

XRT crashes when accessed through both OpenCL and xrt:: #7226

keryell opened this issue Dec 14, 2022 · 1 comment

Comments

@keryell
Copy link
Member

keryell commented Dec 14, 2022

AMD FPGA PCIe cards on Linux come with an OpenCL and XRT platform to control them.
While probably nobody has ever tried, using SYCL on a machine will typically tries to use all the platforms and the devices available:

rkeryell@xsjsycl41:/var/tmp/rkeryell/SYCL/code$ $SYCL_HOME/llvm/build/bin/sycl-ls
[opencl:cpu:0] Intel(R) OpenCL, Intel(R) Xeon(R) CPU E5-2630 v4 @ 2.20GHz 3.0 [2022.14.8.0.04_160000]
[opencl:acc:1] Intel(R) FPGA Emulation Platform for OpenCL(TM), Intel(R) FPGA Emulation Device 1.2 [2022.14.8.0.04_160000]
[opencl:gpu:2] AMD Accelerated Parallel Processing, gfx906:sramecc+:xnack- 2.0 [3486.0 (HSA1.1,LC)]
[opencl:acc:3] Xilinx, xilinx_u200_gen3x16_xdma_base_1 1.0 [1.0]
[ext_oneapi_cuda:gpu:0] NVIDIA CUDA BACKEND, Quadro P400 0.0 [CUDA 11.8]
[ext_oneapi_hip:gpu:0] AMD HIP BACKEND, AMD Radeon VII 0.0 [HIP 50322.6]
[xrt:acc:0] Xilinx XRT, xilinx_u200_gen3x16_xdma_base_1 0.0 [2.14.0]

Then an application using the platforms and releasing them will result in a crash.
A work around is to remove /etc/OpenCL/vendors/xilinx.icd to avoid OpenCL showing up and to focus on XRT only.

@keryell
Copy link
Member Author

keryell commented May 24, 2023

I have been bitten by this today again. I forget about it when I reinstall XRT... :-(

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

1 participant