Skip to content

How to shown values of arrayfire array during debugging? #345

Answered by 9prady9
3togo asked this question in Q&A
Discussion options

You must be logged in to vote

You should be able to view debugging information using gdb, or lldb I think (I haven't tried lldb myself, but should work). Which tool are you using ?

Also, please do note that, even with gdb you still won't be able to view array contents itself directly in a debugger since gdb/lldb or any debugger for that matter cannot provide you a view of the GPU memory. You can use the list of functions for viewing the array contents. Metadata, such as dimensions, type of data etc., of any given error would be visible in debugger though.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by 3togo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants