Comments (6)
One problem with relative path is that it requires LD_LIBRARY_PATH being set. With absolute path, user should be able to run any OpenCL application without setting environment first. I don't know of a good solution to override the ICD loader when debugging.
from xrt.
So do we recommend not to install the package and use OpenCL's ICD when you need to debug the libraries?
from xrt.
Lacking a better suggestion, I recommend modifying the ICD loader text file as we did this morning if and only if you need to debug. Regardless of installation or not, you will have a problem is there is an old version of XRT installed but you want to debug with your own local version.
from xrt.
I'm wondering if it's appropriate to add a check in run.sh for absolute path setting in ICD and warn user that you might not be doing what you think you are?
from xrt.
In run.sh, we can run ldd against host.exe to see if it's directly linked against libOpenCL.so. If yes, then we can check if we have absolute path in ICD. If yes, then we can warn user about this.
from xrt.
I think we have to focus on having the normal case be simple for the normal user.
A user wanting to debug XRT will be probably knowledgeable to handle debugging with the ICD, changing /etc/OpenCL/vendors/xilinx.icd
, play with https://github.com/intel/opencl-intercept-layer or whatever.
So what about closing this issue and considering the current state as a normal behaviour?
from xrt.
Related Issues (20)
- xclmgmt seems to failed only when using v2.12 and later HOT 3
- Consult XRT for power on startup sequence logic HOT 2
- XRT not compiling on Ubuntu 23.10 HOT 4
- Request to remove RTTI requirement HOT 2
- Very long latency of clSetKernelArg function on embedded platforms ? HOT 1
- U55C DMA test failed HOT 1
- What would it take to remove boost from XRT? HOT 7
- Add default constructor to xrt_graph.h
- Cannot read register of vitis kernel in pyxrt
- [XRT] ERROR: See dmesg log for details. err = -22
- The field `drm_driver.gem_prime_mmap` was removed in Linux 6.6 HOT 1
- xocl problems on Linux 6.6 HOT 2
- Build failure(s) with pybind11 HOT 1
- Potential buffer overflow in error report HOT 2
- XRT build drops a `kernel-doc` directory in the PWD HOT 3
- DISABLE_ABI_CHECK could probably be dropped and still have cache friendliness HOT 1
- Broken link
- How OpenCL APIs interact with the device driver?
- Cannot make `xrtDeviceLoadXclbinUUID` work
- XRT build.sh fails on xocl using ubuntu 22.04 kernel ver 6.5 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xrt.