Skip to content

Commit 2dd4bf6

Browse files
committed
Add comment to plugin test explaining workflow and code structure.
1 parent 85769b2 commit 2dd4bf6

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/plugin_test/cl_plugin_loader_test.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,16 @@
2222
#include <stddef.h>
2323
#include <stdio.h>
2424

25+
/*
26+
* This test program uses loader components for portability (environment,
27+
* library) in order to repeatedly load, initialize, and unload a plugin. The
28+
* interface of the plugin is defined in `cl_plugin.h`. This interface define
29+
* an initialization function and return results. A plugin that is linked to
30+
* the OpenCL ICD Loader, and uses OpenCL functionalities in its initialization
31+
* function, will allow checking that the loader initialization and
32+
* deinitialization are working correctly.
33+
*/
34+
2535
int main(int argc, char *argv[]) {
2636
(void)argc;
2737
(void)argv;

0 commit comments

Comments
 (0)