$darkmode
A high-performance general-purpose compute library
/home/abuild/rpmbuild/BUILD/arrayfire-full-v3.9.0/docs/pages/debugging.md
Go to the documentation of this file.
1 Debugging ArrayFire Issues {#debugging}
2 ===============================================================================
3 
4 Using Environment Variables
5 ---------------------------
6 
7  * [`AF_PRINT_ERRORS=1`](configuring_environment.htm#af_print_errors) : Makes exception's messages more helpful
8  * [`AF_TRACE=all`](configuring_environment.htm#af_trace): Print ArrayFire message stream to console
9  * [`AF_JIT_KERNEL_TRACE=stdout`](configuring_environment.htm#af_jit_kernel_trace): Writes out source code generated by ArrayFire's JIT to the specified target
10  * [`AF_OPENCL_SHOW_BUILD_INFO=1`](configuring_environment.htm#af_opencl_show_build_info): Print OpenCL kernel build log to console
11 
12 
13 Tips in Language Bindings
14 -------------------------
15 
16 ### C++
17 
18 * `af_print_mem_info("message", -1);`: Print table of memory used by ArrayFire on the active GPU
19 
20 ### Python
21 
22 * `arrayfire.device.print_mem_info("message")`: Print table of memory used by ArrayFire on the active GPU
23 
24 
25 
26 Further Reading
27 ---------------
28 
29 See the [ArrayFire README](https://github.com/arrayfire/arrayfire) for support information.