-
Notifications
You must be signed in to change notification settings - Fork 30
Add get include and include headers #69
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
Conversation
1. installation script copies backends/include/* into dpctl/ 2. Use MANIFEST.in to include dpctl/include and dpctl/libDPPL*Inteface.* into installation layout 3. Added dpctl.get_include() function to provide location of includes needed to build extension linked to dpCtl 4. Provide dpctl/__init__.pxd allowing to do `cimport dptcl` to access relevant entities like dpctl.SyclQueue, etc.
Updated build scripts to account for move of DPPL*Interface dynamic libraries from environment lib to site-packages/dpctl/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pointed out a few cosmetic changes. Will defer to Sergey on how this works out inside CI.
conda-recipe/bld.bat
Outdated
mkdir dpctl\include | ||
xcopy backends\include dpctl\include /E /Y | ||
|
||
|
||
|
||
REM required by dpglue |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
required by _opencl_core (dpctl.ocldrv)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we are touching the file, might as well fix the comment.
conda-recipe/bld.bat
Outdated
set "OpenCL_LIBDIR=%DPCPP_ROOT%/lib" | ||
set "DPPL_OPENCL_INTERFACE_LIBDIR=dpctl" | ||
set "DPPL_OPENCL_INTERFACE_INCLDIR=dpctl\include" | ||
set "OpenCL_LIBDIR=%DPCPP_ROOT%\lib" | ||
|
||
REM required by oneapi_interface |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
required by _sycl_core (dpct)
conda-recipe/build.sh
Outdated
export OpenCL_LIBDIR=${DPCPP_ROOT}/lib | ||
export DPPL_OPENCL_INTERFACE_LIBDIR=dpctl | ||
export DPPL_OPENCL_INTERFACE_INCLDIR=dpctl/include | ||
export OpenCL_LIBDIR=${DPCPP_ROOT}/libw |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is libw
MANIFEST.in
Outdated
recursive-include dpctl/include *.h *.hpp | ||
include dpctl/*.pxd | ||
include dpctl/*DPPL*Interface.* | ||
global-exclude *.cpp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
new line
@oleksandr-pavlyk I am getting an AssertFailure when I do
|
@diptorupd it is known issue. Use conda-build=3.18. It does not work with newest conda-build=3.20. |
@PokhodenkoSA Were you able to build conda package with this? |
@oleksandr-pavlyk I did not try this concrete PR but switching to conda-build=3.18 will eliminate problem described by @diptorupd. I will try to build locally. |
Trying |
@PokhodenkoSA @oleksandr-pavlyk Any ideas why CI is failing at the build stage for this PR? |
In Linux it is infrastructure problem. On Windows build and test passed - only validation checks False positive. |
LGTM. Let us merge after @PokhodenkoSA restarts the Linux CI and we get a clean build on Linux. |
Was able to build locally on Linux, merging? |
@PokhodenkoSA @diptorupd
dpctl.get_include()
dpctl/__init__.pxd
, which allows downstream users to docimport dpctl
.