Comments (2)
Hi, thanks for the feedback. Unfortunately I currently don't have access to such a board, but I can offer some suggestions for solving this problem. I think the best bet is to build the library and the examples in CMake's Debug mode, and then debug the canon example using gdb (GNU Debugger). Set a breakpoint (b) before where the crash seems to be occurring, and then execute instructions line-by-line (n), until the crash occurs. When you detect the instruction responsible for the crash, repeat the process, but instead of executing that specific instruction (n), step into it (s), and then execute instructions in the called function (n) until you detect the instruction that caused the crash. Repeat this process again until you find the lowest level instruction which is causing the crash. This way you can determine where exactly is the crash occurring, i.e. in Vivante's OpenCL, in cf4ocl, in the canon example, etc.
In parentheses I specified gdb commands. Here's a short list of these and other useful gdb commands:
b / break - Set a breakpoint at a specified line
n / next - Execute next instruction (but don't go into it)
s / step - Execute next instruction and go into it if source available
r / run - Run program
s / stop - Stop running program
q / quit - Quit GDB
set args - Set program args
You invoke gdb like this:
$ gbd name_of_executable
Do let me know if the problem is in cf4ocl or the canon example. The examples run fine on Linux, Mac, and Windows on x86/x86_64 platforms, which is what I have available for testing.
from cf4ocl.
Closed this issue due to lack of feedback.
from cf4ocl.
Related Issues (20)
- Wrap clGetKernelSubGroupInfo API call (OpenCL 2.1)
- Wrap clCreateProgramWithIL API call (OpenCL 2.1)
- Wrap clSetDefaultDeviceCommandQueue API call (OpenCL 2.1)
- Wrap clGetHostTimer and clGetDeviceAndHostTimer API calls (OpenCL 2.1) and integrate them in the profiler module
- Wrap clCloneKernel API call (OpenCL 2.1)
- Callback function for g_if_err macros
- Enable automatic profiling calculations with instants other than start/end
- Add profiler support for CL_PROFILING_COMMAND_COMPLETE (OpenCL 2.0)
- Add support for profiler composite events like in cf4ocl1
- Perform reference/dereference of OpenCL objects when cf4ocl objects are referenced/dereferenced
- ccl_program_enqueue_kernel fails when invoked without kernel arguments
- ccl_kernel_suggest_worksizes: no need for gws%lws==0 for OpenCL >= 2.0
- Improve test coverage reported by codecov
- Fix/clarify issues highlighted by coverity HOT 2
- Compilation issue on arm(aarch64) HOT 3
- MacOS Mojave - Cannot link `ld: library not found for -lcf4ocl2` HOT 8
- Tests fail with OCL stub if device > 0
- Add Windows build to Travis CI
- In demo code, demonstrate zero-copy memory alignment
- In demo code, show CL_PROGRAM_BUILD_LOG if ccl_program_build fails
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 cf4ocl.