Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

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

Most of the rust compatible variables could reveal their values during debugging. However arrayfire array will only show something like
"handle: core::ffi::c_void::__variant1"
without any details of their stored value.

I have tried the cpu backend. The situation is the same. I wonder whether there is any mean to show the value of arrayfire array during code debugging?

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 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.

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

AltStyle によって変換されたページ (->オリジナル) /