Skip to content

Export PI opencl function symbols using version script #1638

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

Merged
merged 46 commits into from
May 12, 2020
Merged

Export PI opencl function symbols using version script #1638

merged 46 commits into from
May 12, 2020

Conversation

bso-intel
Copy link
Contributor

Changed symbol names from Oclpi* to pi* in pi_opencl.cpp.
Set -fvisibility=hidden to hide all symbols by default.
Version script is used to export only pi* symbols.

bso-intel and others added 30 commits February 24, 2020 22:18
[CORC-7433]

Enum variables were too commonly used by users.
This kind of conflicts cannot be avoided 100%, but
we can minimize the chance by using the prefix SYCL_

Signed-off-by: Byoungro So <byoungro.so@intel.com>
Signed-off-by: Byoungro So <byoungro.so@intel.com>
Signed-off-by: Byoungro So <byoungro.so@intel.com>
Signed-off-by: Byoungro So <byoungro.so@intel.com>
Signed-off-by: Byoungro So <byoungro.so@intel.com>
Signed-off-by : Byoungro So <byoungro.so@intel.com>
Co-Authored-By: Alexey Bader <alexey.bader@intel.com>
Signed-off-by: Byoungro So <byoungro.so@intel.com>
Signed-off-by: Byoungro So <byoungro.so@intel.com>
Signed-off-by: Byoungro So <byoungro.so@intel.com>
Co-Authored-By: Alexey Bader <alexey.bader@intel.com>
Signed-off-by: Byoungro So <byoungro.so@intel.com>
Signed-off-by: Byoungro So <byoungro.so@intel.com>
Signed-off-by: Byoungro So <byoungro.so@intel.com>
Signed-off-by: Byoungro So <byoungro.so@intel.com>
Signed-off-by: Byoungro So <byoungro.so@intel.com>
Signed-off-by: Byoungro So <byoungro.so@intel.com>
Signed-off-by: Byoungro So <byoungro.so@intel.com>
Signed-off-by: Byoungro So <byoungro.so@intel.com>
Signed-off-by: Byoungro So <byoungro.so@intel.com>
Also, added regression test for checking pi* export symbols

Signed-off-by: Byoungro So <byoungro.so@intel.com>
@bso-intel bso-intel requested a review from a team as a code owner May 7, 2020 23:43
smaslov-intel
smaslov-intel previously approved these changes May 7, 2020
@bso-intel
Copy link
Contributor Author

@smaslov-intel
I notice that there is a merge conflict in pi.h.

<<<<<<< export-piopencl
#include <CL/opencl.h>
#include <CL/sycl/detail/export.hpp>
=======
#include <CL/sycl/detail/cl.h>
>>>>>>> sycl

But, I don't think I have write access.
Could you resolve the conflict?
Thanks.

@smaslov-intel
Copy link
Contributor

@smaslov-intel
I notice that there is a merge conflict in pi.h.

<<<<<<< export-piopencl
#include <CL/opencl.h>
#include <CL/sycl/detail/export.hpp>
=======
#include <CL/sycl/detail/cl.h>
>>>>>>> sycl

But, I don't think I have write access.
Could you resolve the conflict?
Thanks.

I think you have to rebase your code locally, and push the rebased version.

bso-intel added 7 commits May 7, 2020 18:21
Changed symbols from Oclpi* to pi*
Set -fvisibility=hidden by default to hide all symbols.
version script tells only pi* symbols are global.

Signed-off-by: Byoungro So <byoungro.so@intel.com>
Cleaned up some unnecessary versioning code
Changed library scope from SHARED to MODULE to limit its usage
Moved duplicate code out of condition

Signed-off-by: Byoungro So <byoungro.so@intel.com>
Signed-off-by: Byoungro So <byoungro.so@intel.com>
already attached it in pi.h

Signed-off-by: Byoungro So <byoungro.so@intel.com>
Also, added regression test for checking pi* export symbols

Signed-off-by: Byoungro So <byoungro.so@intel.com>
…nto export-piopencl

Signed-off-by: Byoungro So <byoungro.so@intel.com>
Signed-off-by: Byoungro So <byoungro.so@intel.com>
bso-intel added 2 commits May 8, 2020 19:35
Signed-off-by: Byoungro So <byoungro.so@intel.com>
moved it under test/abi/

Signed-off-by: Byoungro So <byoungro.so@intel.com>
alexbatashev
alexbatashev previously approved these changes May 9, 2020
Signed-off-by: Byoungro So <byoungro.so@intel.com>
@bader bader merged commit f706624 into intel:sycl May 12, 2020
againull added a commit to againull/llvm that referenced this pull request May 20, 2020
Align with changes made for OpenCL plugin in
intel#1638:

* Fix build on Windows by defining __SYCL_BUILD_SYCL_DLL in cmake file
* Export only pi* symbols in libpi_level0.so
* Add test to check exported symbols

Signed-off-by: Artur Gainullin <artur.gainullin@intel.com>
@bso-intel bso-intel deleted the export-piopencl branch June 11, 2020 15:30
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.

4 participants