Git Product home page Git Product logo

Comments (2)

nunofachada avatar nunofachada commented on September 16, 2024

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.

nunofachada avatar nunofachada commented on September 16, 2024

Closed this issue due to lack of feedback.

from cf4ocl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.