-
Notifications
You must be signed in to change notification settings - Fork 31
Windows test #13
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
Windows test #13
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
c6e73fd
Remove build/skip
PokhodenkoSA 55b30ec
Add bld.bat
PokhodenkoSA ac0a3e9
Fix OpenCL.lib path
PokhodenkoSA 4d3d445
Fix runtime_library_dirs
PokhodenkoSA a7c99e1
Add DPPL_API to dppl_oneapi_interface.hppdppl_oneapi_interface.hpp
PokhodenkoSA f769ca1
Add DPPL_API to dppl_opencl_interface.h
PokhodenkoSA addcd2c
Remove DPPL_API from dppl_opencl_interface.h for CFFI
PokhodenkoSA 8614760
Add run_test.bat
PokhodenkoSA 4a32318
Add clean to bld.bat
PokhodenkoSA 0ade18a
Create singleton function for gRtHelper
PokhodenkoSA 3ecb222
Fix defining DPPL_API
PokhodenkoSA 844de18
Source oneAPI in Windows tests
PokhodenkoSA 114ff08
Use make and ninja on unix and win
PokhodenkoSA b42bd02
Use -DCMAKE_PREFIX_PATH=%LIBRARY_PREFIX%
PokhodenkoSA a71a260
Update oneapi_wrapper/source/dppl_oneapi_interface.cpp
diptorupd File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
call "%ONEAPI_ROOT%compiler\latest\env\vars.bat" | ||
set "CC=dpcpp-cl.exe" | ||
set "CXX=dpcpp-cl.exe" | ||
|
||
rmdir /S /Q build_cmake | ||
mkdir build_cmake | ||
cd build_cmake | ||
|
||
set "DPCPP_ROOT=%ONEAPI_ROOT%/compiler/latest/windows" | ||
|
||
cmake -G Ninja ^ | ||
-DCMAKE_BUILD_TYPE=Release ^ | ||
"-DCMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX%" ^ | ||
"-DCMAKE_PREFIX_PATH=%LIBRARY_PREFIX%" ^ | ||
"-DDPCPP_ROOT=%DPCPP_ROOT%" ^ | ||
"%SRC_DIR%/oneapi_wrapper" | ||
IF %ERRORLEVEL% NEQ 0 exit 1 | ||
|
||
ninja -n | ||
ninja install | ||
IF %ERRORLEVEL% NEQ 0 exit 1 | ||
|
||
cd .. | ||
|
||
REM required by dpglue | ||
set "DP_GLUE_LIBDIR=%LIBRARY_PREFIX%/lib" | ||
set "DP_GLUE_INCLDIR=%LIBRARY_PREFIX%/include" | ||
set "OpenCL_LIBDIR=%DPCPP_ROOT%/lib" | ||
REM required by oneapi_interface | ||
set "DPPL_ONEAPI_INTERFACE_LIBDIR=%LIBRARY_PREFIX%/lib" | ||
set "DPPL_ONEAPI_INTERFACE_INCLDIR=%LIBRARY_PREFIX%/include" | ||
|
||
"%PYTHON%" setup.py clean --all | ||
"%PYTHON%" setup.py build | ||
"%PYTHON%" setup.py install | ||
IF %ERRORLEVEL% NEQ 0 exit 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
call "%ONEAPI_ROOT%/compiler/latest/env/vars.bat" | ||
REM IF %ERRORLEVEL% NEQ 0 exit 1 | ||
|
||
"%PYTHON%" -c "import dppl" | ||
IF %ERRORLEVEL% NEQ 0 exit 1 | ||
|
||
"%PYTHON%" -c "import dppl.ocldrv" | ||
IF %ERRORLEVEL% NEQ 0 exit 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.