Skip to content

Commit 5e362c0

Browse files
sharmag1-Gauravzibaiwan
authored andcommitted
added section on debug variables
1 parent 98ab300 commit 5e362c0

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,14 @@ or IntelⓇ FPGA RTE for OpenCL™ installed on your system:
236236
237237
6. Run your OpenCL host program.
238238
239+
240+
### Debug Environment Variables
241+
242+
| Environment Variable Title | Description |
243+
| ------------- | ------------- |
244+
| ACL_HAL_DEBUG | Set this variable to a value of 1 to 5 to increase debug output from the hardware abstraction layer (HAL), which interfaces directly with the MMD layer. |
245+
| ENV_ACL_CONTEXT_CALLBACK_DEBUG | Set this variable to a value of 1 to produce error text for errors that occur in the OpenCL context. This is error text that would be sent upstream through a callback function provided with [`clCreateContext`]. |
246+
239247
### Notes
240248
241249
- When setting the environment variable [`OCL_ICD_FILENAMES`] for debugging,
@@ -245,3 +253,4 @@ or IntelⓇ FPGA RTE for OpenCL™ installed on your system:
245253
causing undefined behaviour.
246254
247255
[`OCL_ICD_FILENAMES`]: https://github.com/KhronosGroup/OpenCL-ICD-Loader/blob/c5a6e013ad7c8b379fc94e3c849aa3396900a63c/README.md#table-of-debug-environment-variables
256+
[`clCreateContext`]: https://man.opencl.org/clCreateContext.html

src/acl_context.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1308,7 +1308,7 @@ acl_get_unused_kernel_invocation_wrapper(cl_context context) {
13081308
}
13091309

13101310
void acl_context_callback(cl_context context, const std::string errinfo) {
1311-
// Call the notifcation function registered during context creation.
1311+
// Call the notification function registered during context creation.
13121312
// We don't support the special info (middle two arguments).
13131313
if (context && context->notify_fn) {
13141314
acl_notify_fn_t notify_fn = context->notify_fn;

0 commit comments

Comments
 (0)