Skip to content

[SYCL] Plugin Interface Changes to query a list of function pointers. #731

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

garimagu
Copy link
Contributor

Please review only the last commit. The other commits are under review at #708

  • Plugin now keeps a list of the function pointers in a predetermined
    order.
  • A single dlsym call is made returning the location of this list.
  • The PI function pointers are populated using offsets and this
    location.

Signed-off-by: Garima Gupta garima.gupta@intel.com

- created a plugin as a shared plugin: lib/libpi_opencl.so.
  Moved the sources to new location plugins/opencl.
- removed the dependency on pi.cpp by pi_opencl.cpp
- added the preliminary plugin recognition mechanism and loading the
  plugin as a shared object using dlopen/dlsym etc.

Signed-off-by: Garima Gupta <garima.gupta@intel.com>
Signed-off-by: Garima Gupta <garima.gupta@intel.com>
Signed-off-by: Garima Gupta <garima.gupta@intel.com>
plugin:pi_opencl.cpp
- changed the dependency to pi.h, which contains declarations and no
other defined macros or defintions.

Signed-off-by: Garima Gupta <garima.gupta@intel.com>
@garimagu garimagu force-pushed the private/garimagu/pi_function_table2 branch 2 times, most recently from 935a767 to e259fe4 Compare October 15, 2019 01:14
- Plugin now keeps a list of the function pointers in a predetermined
order.
- A single dlsym call is made returning the location of this list.
- The PI function pointers are populated using offsets and this
location.

Signed-off-by: Garima Gupta <garima.gupta@intel.com>
@garimagu garimagu force-pushed the private/garimagu/pi_function_table2 branch from e259fe4 to 7f3389e Compare October 15, 2019 01:18
@garimagu garimagu closed this Oct 15, 2019
@garimagu garimagu deleted the private/garimagu/pi_function_table2 branch October 15, 2019 01:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant