Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
80 commits
Select commit Hold shift + click to select a range
da4300e
Update CHANGELOG (#302)
PokhodenkoSA Mar 1, 2021
a0670cf
Fix CI for release0.6 (#304)
PokhodenkoSA Mar 1, 2021
8855eca
Fix Bandit warning about "subprocess.check_call(shell=True)" for Wind…
vlad-perevezentsev Mar 2, 2021
5e972bf
Refactor the SyclDevice class to not expose _SyclDevice to users.
Feb 15, 2021
7ac5d26
Change pytest fixtures for the SyclDevice class.
Feb 17, 2021
9bdf1be
Add a new _sycl_device_factory and dpctl_sycl_device_manager.{h|cpp}
Feb 18, 2021
c7aeef4
Fix spelling typo.
Mar 3, 2021
8449d30
Change how error codes are handled in windows batch scripts.
Mar 1, 2021
f7d52d6
Ignore .dll files.
Mar 3, 2021
f385dea
Replace tabs by space.
Mar 3, 2021
10238b0
Fix typo and set the DPCPP_FOUND variable in FindDPCPP.cmake.
Mar 3, 2021
7866742
Add support for Aspects (#307)
1e-to Mar 9, 2021
e73d536
_sycl_device_factory implements get_num_devices and has_*_device(s), …
Mar 13, 2021
ade6471
Make sure that dpctl/memory/*.pxd and dpctl/program/*.pxd files are b…
oleksandr-pavlyk Mar 9, 2021
39b0881
cimport * from dpctl._backend
oleksandr-pavlyk Mar 9, 2021
fa4ae7a
Use cdef on DPCTLSyclDeviceRef variable
oleksandr-pavlyk Mar 4, 2021
4630af1
unicode handling tweaks
oleksandr-pavlyk Mar 5, 2021
d8470c3
Moved all _SyclDevice methods to SyclDevice
oleksandr-pavlyk Mar 8, 2021
20295cf
SyclDevice performs validation when copying from _SyclDevice
oleksandr-pavlyk Mar 8, 2021
24c2a20
Add async handler.
Mar 13, 2021
a085f93
C API changes to support new dpctl queue API.
Feb 25, 2021
8a78e30
Added DPCTLQueue_Copy, like DPCTLDevice_Copy
oleksandr-pavlyk Mar 5, 2021
f87780a
Update to _backend.pxd
oleksandr-pavlyk Mar 5, 2021
1a7fc01
added DPCTLQueuePropertyType to _backend
oleksandr-pavlyk Mar 5, 2021
847b8fa
SyclQueue construction expanded
oleksandr-pavlyk Mar 5, 2021
42af47c
Change to queue manager
oleksandr-pavlyk Mar 5, 2021
649ac0c
Formatting fixes.
Mar 6, 2021
c71d068
import only what we need.
Mar 6, 2021
3467d9c
added parsing of queue properties
oleksandr-pavlyk Mar 8, 2021
78244da
set_default_queue -> set_global_queue
oleksandr-pavlyk Mar 9, 2021
ae3bf66
reflect changes in names in dpCtl_api.rst
oleksandr-pavlyk Mar 9, 2021
a5e7e78
Added except * to definition of default_async_error_handler
oleksandr-pavlyk Mar 11, 2021
ee65161
Added DPCTLDeviceSelector_Score to score a device by the selector
oleksandr-pavlyk Mar 12, 2021
d88b950
updated test_sycl_queue, used new SyclDevice.default_selector_score
oleksandr-pavlyk Mar 12, 2021
9652801
Refactor/device properties (#324)
Mar 22, 2021
41455d1
Add missing dllexport (#329)
Mar 23, 2021
fa1f0b1
propoerly use dllexport attribute to suppress warning on Windows. (#332)
Mar 23, 2021
05fcb65
Update package wheel (#268)
Vyacheslav-Smirnov Mar 11, 2021
952d6c7
Add SYCL context constructor and test cases.
Mar 23, 2021
2a264fb
Remove extra new line.
Mar 23, 2021
ebd6c0f
Shorten function name.
Mar 23, 2021
a8f9251
Rename the constructor.
Mar 24, 2021
da1a6e8
Changes in pull/327 were adding empty strigs to compile_args, link_ar…
oleksandr-pavlyk Mar 25, 2021
0a22e43
Add device descriptors: sub_group_independent_forward_progress and pr…
1e-to Mar 25, 2021
b5ca195
Remove code duplication. (#337)
Mar 26, 2021
e7ad65c
using const qualifier in iterating over vector of sub-devices
oleksandr-pavlyk Mar 26, 2021
c8c481f
fix Cython error due to mismatch in declaration of DPCTLDevice_Create…
oleksandr-pavlyk Mar 26, 2021
1c9aec7
Feature/platform interface (#336)
Mar 26, 2021
283c6ee
Remove workarounds to make device equality work. (#338)
Mar 31, 2021
08dc3ca
Rename dpCtl to dpctl in all comments, license headers, and docs. (#342)
Mar 31, 2021
2a746d0
exported default_async_error_handler (#346)
oleksandr-pavlyk Mar 31, 2021
a705316
Fixed signature of SyclDevice._init_helper (#347)
oleksandr-pavlyk Mar 31, 2021
eb6edb0
Added DPCTLDeviceVector_CreateFromArray
oleksandr-pavlyk Mar 24, 2021
08d6a59
Added constructor for SyclContext
oleksandr-pavlyk Mar 24, 2021
d2d944e
Added DPCTLContext_GetDevices(CRef)
oleksandr-pavlyk Mar 25, 2021
717650b
SyclContext.get_devices added
oleksandr-pavlyk Mar 25, 2021
95449c0
added some tests for sycl context
oleksandr-pavlyk Mar 25, 2021
bfa9ecc
Added __repr__
oleksandr-pavlyk Mar 25, 2021
513592d
clang-format ran on dpctl-capi changes
oleksandr-pavlyk Mar 25, 2021
7382622
Added DPCTLContext_DeviceCount
oleksandr-pavlyk Mar 25, 2021
74de685
Used DPCTLContext_DeviceCount for effiency and to simplify code
oleksandr-pavlyk Mar 25, 2021
661a6a8
SyclQueue/SyclContext constructor from device change
oleksandr-pavlyk Mar 26, 2021
28e465d
Added handling of returned error code
oleksandr-pavlyk Mar 26, 2021
292cc38
DPCTLContext_GetDevices checks for runtime_error per PR review
oleksandr-pavlyk Mar 26, 2021
473abec
NULL-initialized DVRef
oleksandr-pavlyk Mar 26, 2021
8c2c218
Marking *elem with __dpctl_keep per review
oleksandr-pavlyk Mar 26, 2021
27e6293
Change device_count to a property
oleksandr-pavlyk Mar 26, 2021
1efe4a2
Added docstring for _create explaining that it deleted arg
oleksandr-pavlyk Mar 29, 2021
ae21acc
Fixed build break by removing use of DeviceAndContextPair
oleksandr-pavlyk Mar 29, 2021
add26a5
Added doc string for _create method
oleksandr-pavlyk Mar 29, 2021
77e1dda
simplification of test_sycl_context_interface per PR feedback
oleksandr-pavlyk Mar 31, 2021
5e977cd
removed catch of bad_alloc per PR feedback
oleksandr-pavlyk Mar 31, 2021
2463959
DPCTLDeviceVector_CreateFromArray now copies devices too
oleksandr-pavlyk Mar 31, 2021
11f332a
Since DPCTLDeviceVector_CreateFromArray makes copies of devices
oleksandr-pavlyk Mar 31, 2021
962ca9f
Added C-api for all sub-device creation funcs to device interface.
Mar 17, 2021
856b4d5
Add Python API changes to add sub-device creation functions.
Mar 25, 2021
9a55863
Moved code for sub-devices to the end of class definition
oleksandr-pavlyk Mar 31, 2021
e34c2f8
Iterator variable must be same type as upper bound.
oleksandr-pavlyk Mar 31, 2021
bff26fd
create_sub_device changes
oleksandr-pavlyk Mar 31, 2021
7c36dd8
updated tests to use partition= keyword
oleksandr-pavlyk Mar 31, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .github/workflows/black.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ name: black
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [master]
pull_request:
push:
branches: [master]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/clang-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ name: clang-format Check
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [master]
pull_request:
push:
branches: [master]

jobs:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ __pycache__/
*.so
*.exe
*.lib
*.dll

# CMake build and local install directory
build
Expand Down
33 changes: 26 additions & 7 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,38 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).


## [Unreleased]

## [0.6.1] - 2021-03-01
### Fixed
- Do not use POP_FRONT in FindDPCPP.cmake so that we can use a cmake version older that 3.15.

## [0.6.0] - 2021-03-01
### Added
- Documentation improvements
- Cmake improvements and Coverage for C API, Cython and Python
- Added support for Level Zero devices and queues
- Added support for SYCL standard device_selector classes
- SyclDevice instances can now be constructed using filter selector strings
- Code of conduct
- Documentation improvements.
- Cmake improvements and Coverage for C API, Cython and Python.
- Added support for Level Zero devices and queues.
- Added support for SYCL standard device_selector classes.
- SyclDevice instances can now be constructed using filter selector strings.
- Code of conduct.
- Building wheels.
- Queue manager improvements.
- Adding `__array_function__` so that Numpy calls with dparrays work.
- Using clang-format for C/C++ code formatting.
- Using pytest for running tests.
- Add python and cython file coverage.
- Using Bandit for finding common security issues in Python code.
- Add instructions about file headers formats.

### Changed
- Changed compiler name usage from clang++ to dpcpp.
- Reformat backend.pxd to be closer to black style.

### Fixed
- Remove `cython` from `install_requires`. It allows use `dpCtl` in `numba` extensions.
- Incorrect import in example.
- Consistency of file headers.
- Klocwork issues.

## [0.5.0] - 2020-12-17
### Added
Expand Down
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ We use [clang-format](https://clang.llvm.org/docs/ClangFormat.html) code formatt
Install: `conda install clang-tools`

- Revision: `10.0.1`
- See the default configuration used by dpCtl in `.clang-format`.
- See the default configuration used by dpctl in `.clang-format`.

Run before each commit: `clang-format -style=file -i dpctl-capi/include/*.h dpctl-capi/include/Support/*.h dpctl-capi/source/*.cpp dpctl-capi/tests/*.cpp dpctl-capi/helper/include/*.h dpctl-capi/helper/source/*.cpp`

Expand All @@ -30,7 +30,7 @@ purpose of the file. The standard header looks like this:
```
//===----- dpctl_sycl_event_interface.h - C API for sycl::event -*-C++-*- ===//
//
// Data Parallel Control (dpCtl)
// Data Parallel Control (dpctl)
//
// Copyright 2020-2021 Intel Corporation
//
Expand Down Expand Up @@ -69,7 +69,7 @@ Few things to note about this format:
Every Python and Cython file should only include the following license header:

```
# Data Parallel Control (dpCtl)
# Data Parallel Control (dpctl)
#
# Copyright 2020-2021 Intel Corporation
#
Expand Down
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
include versioneer.py
recursive-include dpctl/include *.h *.hpp
include dpctl/*.pxd
recursive-include dpctl *.pxd
include dpctl/*DPCTL*Interface.*
include dpctl/tests/input_files/*
global-exclude *.cpp
29 changes: 24 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ conda install dpctl

Build and Install with setuptools
=================================
dpCtl relies on DPC++ runtime. With Intel oneAPI installed you should activate it.
dpctl relies on DPC++ runtime. With Intel oneAPI installed you should activate it.
`setup.py` requires environment variable `ONEAPI_ROOT` and following packages
installed:
- `cython`
Expand All @@ -65,9 +65,28 @@ For development:
python setup.py develop
```

Using dpCtl
Install Wheel Package from Pypi
==================================
1. Install dpctl
```cmd
python -m pip install --index-url https://pypi.anaconda.org/intel/simple -extra-index-url https://pypi.org/simple dpctl
```
Note: dpctl wheel package is placed on Pypi, but some of its dependencies (like Intel numpy) are in Anaconda Cloud.
That is why install command requires additional intel Pypi channel from Anaconda Cloud.

2. Set path to Performance Libraries in case of using venv or system Python:
On Linux:
```cmd
export LD_LIBRARY_PATH=<path_to_your_env>/lib
```
On Windows:
```cmd
set PATH=<path_to_your_env>\bin;<path_to_your_env>\Library\bin;%PATH%
```

Using dpctl
===========
dpCtl relies on DPC++ runtime. With Intel oneAPI installed you could activate it.
dpctl relies on DPC++ runtime. With Intel oneAPI installed you could activate it.

On Windows:
```cmd
Expand All @@ -78,7 +97,7 @@ On Linux:
source ${ONEAPI_ROOT}/compiler/latest/env/vars.sh
```

When dpCtl is installed via conda package
When dpctl is installed via conda package
then it uses DPC++ runtime from `dpcpp_cpp_rt` package
and it is not necessary to activate oneAPI DPC++ compiler environment.

Expand All @@ -94,7 +113,7 @@ for script in `ls examples/python/`; do echo "executing ${script}"; python examp
```

Examples of building Cython extensions with DPC++ compiler, that interoperate
with dpCtl can be found in folder `cython`.
with dpctl can be found in folder `cython`.

Each example in `cython` folder can be built using
`CC=clang CXX=dpcpp python setup.py build_ext --inplace`.
Expand Down
8 changes: 4 additions & 4 deletions conda-recipe/bld.bat
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
call "%ONEAPI_ROOT%\compiler\latest\env\vars.bat"
IF %ERRORLEVEL% NEQ 0 (
echo "oneAPI compiler activation failed"
exit /b 1
if errorlevel 1 (
echo "oneAPI compiler activation failed"
exit /b 1
)

"%PYTHON%" setup.py clean --all
"%PYTHON%" setup.py install
IF %ERRORLEVEL% NEQ 0 exit /b 1
if errorlevel 1 exit 1

rem Build wheel package
if NOT "%WHEELS_OUTPUT_FOLDER%"=="" (
Expand Down
2 changes: 1 addition & 1 deletion conda-recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ test:
- pytest
- pytest-cov
about:
home: https://github.com/IntelPython/dpCtl.git
home: https://github.com/IntelPython/dpctl.git
license: Apache-2.0
license_file: LICENSE
summary: 'A lightweight Python wrapper for a subset of OpenCL and SYCL API.'
Expand Down
6 changes: 3 additions & 3 deletions conda-recipe/run_test.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
call "%ONEAPI_ROOT%\compiler\latest\env\vars.bat"
IF %ERRORLEVEL% NEQ 0 (
if errorlevel 1 (
echo "oneAPI compiler activation failed%"
exit /b 1
)
Expand All @@ -9,7 +9,7 @@ set ERRORLEVEL=
@echo on

"%PYTHON%" -c "import dpctl"
IF %ERRORLEVEL% NEQ 0 exit /b 1
if errorlevel 1 exit 1

pytest -q -ra --disable-warnings --pyargs dpctl -vv
IF %ERRORLEVEL% NEQ 0 exit /b 1
if errorlevel 1 exit 1
6 changes: 3 additions & 3 deletions docs/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.18 FATAL_ERROR)
project("Data-parallel Control (dpCtl)")
project("Data-parallel Control (dpctl)")
# Add the cmake folder so the FindSphinx module is found
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH})

Expand All @@ -9,7 +9,7 @@ find_package (Git)

set(DOC_OUTPUT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/generated_docs)
if( DPCTL_DOCGEN_PREFIX )
message(STATUS "Generating dpCtl documents in " ${DPCTL_DOCGEN_PREFIX})
message(STATUS "Generating dpctl documents in " ${DPCTL_DOCGEN_PREFIX})
set(DOC_OUTPUT_DIR ${DPCTL_DOCGEN_PREFIX})
endif()

Expand Down Expand Up @@ -74,7 +74,7 @@ add_custom_command(
COMMAND
${SPHINX_EXECUTABLE} -b html
# Tell Breathe where to find the Doxygen output
-Dbreathe_projects.dpCtl-CAPI=${DOXYGEN_OUTPUT_DIR}/xml
-Dbreathe_projects.dpctl-CAPI=${DOXYGEN_OUTPUT_DIR}/xml
${SPHINX_SOURCE} ${SPHINX_OUTPUT_DIR}
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
DEPENDS
Expand Down
2 changes: 1 addition & 1 deletion docs/Doxyfile.in
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ DOXYFILE_ENCODING = UTF-8
# title of most generated pages and in a few other places.
# The default value is: My Project.

PROJECT_NAME = "Data-parallel Control (dpCtl)"
PROJECT_NAME = "Data-parallel Control (dpctl)"

# The PROJECT_NUMBER tag can be used to enter a project or revision number. This
# could be handy for archiving the generated documentation or if some version
Expand Down
4 changes: 2 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
What?
=====

Generator scripts for dpCtl API documentation. To run these scripts, follow
Generator scripts for dpctl API documentation. To run these scripts, follow
the following steps:
```bash
cd dpctl/docs
Expand All @@ -16,7 +16,7 @@ documents in the current source directory in a sub-directory called
`generated_docs`.

The `make Sphinx` command will generate standalone Doxygen documentation and
a consolidated Sphinx documentation for both dpCtl Python and C APIs.
a consolidated Sphinx documentation for both dpctl Python and C APIs.

Prerequisite
============
Expand Down
6 changes: 3 additions & 3 deletions docs/conf.in
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ extensions = [
]

# Breathe Configuration
breathe_default_project = "dpCtl-CAPI"
breathe_default_project = "dpctl-CAPI"

# Add any paths that contain templates here, relative to this directory.
templates_path = ["_templates"]
Expand All @@ -58,8 +58,8 @@ exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
exhale_args = {
# These arguments are required
"containmentFolder": "./api",
"rootFileName": "dpCtl-CAPI_root.rst",
"rootFileTitle": "dpCtl C API",
"rootFileName": "dpctl-CAPI_root.rst",
"rootFileTitle": "dpctl C API",
"doxygenStripFromPath": "..",
"createTreeView": True,
"exhaleExecutesDoxygen": True,
Expand Down
2 changes: 1 addition & 1 deletion docs/dpCtl.dptensor_api.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.. _dpCtl.dptensor_api:

#########################
dpCtl dptensor Python API
dpctl dptensor Python API
#########################

.. automodule:: dpctl.dptensor
Expand Down
2 changes: 1 addition & 1 deletion docs/dpCtl.program_api.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.. _dpCtl.program_api:

########################
dpCtl Program Python API
dpctl Program Python API
########################

.. automodule:: dpctl.program
Expand Down
8 changes: 3 additions & 5 deletions docs/dpCtl_api.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.. _dpCtl_api:

################
dpCtl Python API
dpctl Python API
################

.. automodule:: dpctl
Expand Down Expand Up @@ -55,9 +55,7 @@ Functions
.. autofunction:: get_include
.. autofunction:: get_num_activated_queues
.. autofunction:: get_num_platforms
.. autofunction:: get_num_queues
.. autofunction:: has_cpu_queues
.. autofunction:: has_gpu_queues
.. autofunction:: get_num_devices
.. autofunction:: has_sycl_platforms
.. autofunction:: is_in_device_context
.. autofunction:: set_default_queue
.. autofunction:: set_global_queue
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.

Welcome to Data-parallel Control (dpCtl)'s documentation!
Welcome to Data-parallel Control (dpctl)'s documentation!
=========================================================

.. toctree::
Expand Down
12 changes: 5 additions & 7 deletions dpctl-capi/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.10 FATAL_ERROR)
project("dpCtl C API - A C wrapper for a subset of SYCL")
project("dpctl C API - A C wrapper for a subset of SYCL")

# Option to turn on support for creating Level Zero interoperability programs
# from a SPIR-V binary file.
Expand Down Expand Up @@ -41,7 +41,7 @@ if(WIN32)
set(CMAKE_LINKER:PATH "${DPCPP_ROOT}/bin/lld-link")
message(STATUS "Resetting CXX compiler to: " ${CMAKE_CXX_COMPILER})
message(STATUS "Resetting C compiler to: " ${CMAKE_C_COMPILER})
message(STATUS "Resetting Linker to: " ${CMAKE_LINK})
message(STATUS "Resetting Linker to: " ${CMAKE_LINKER})
set(WARNING_FLAGS "-Wall -Wextra -Winit-self -Wunused-function -Wuninitialized -Wmissing-declarations")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${WARNING_FLAGS}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${WARNING_FLAGS} -Qstd=c++17")
Expand Down Expand Up @@ -108,10 +108,8 @@ if(DPCTL_ENABLE_LO_PROGRAM_CREATION)
endif()

install(
TARGETS
DPCTLSyclInterface
LIBRARY DESTINATION
"${CMAKE_INSTALL_PREFIX}/lib/"
TARGETS DPCTLSyclInterface
LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/
)

# Install all headers
Expand Down Expand Up @@ -154,7 +152,7 @@ if(DPCTL_GENERATE_COVERAGE)
endif()
endif()

# Add sub-directory to build the dpCtl C API test cases
# Add sub-directory to build the dpctl C API test cases
if(DPCTL_BUILD_CAPI_TESTS)
add_subdirectory(tests)
endif()
4 changes: 3 additions & 1 deletion dpctl-capi/cmake/modules/FindDPCPP.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Data Parallel Control (dpCtl)
# Data Parallel Control (dpctl)
#
# Copyright 2020-2021 Intel Corporation
#
Expand Down Expand Up @@ -100,12 +100,14 @@ if(${dpcpp_result} MATCHES "0")
set(DPCPP_SYCL_LIBRARY ${DPCPP_INSTALL_DIR}/lib/libsycl.so)
set(DPCPP_OPENCL_LIBRARY ${DPCPP_INSTALL_DIR}/lib/libOpenCL.so)
endif()
set(DPCPP_FOUND TRUE)
else()
message(STATUS "DPCPP needed to build dpctl_sycl_interface")
return()
endif()

find_package_handle_standard_args(DPCPP DEFAULT_MSG
DPCPP_FOUND
DPCPP_VERSION
DPCPP_INCLUDE_DIR
DPCPP_SYCL_INCLUDE_DIR
Expand Down
2 changes: 1 addition & 1 deletion dpctl-capi/cmake/modules/FindLcov.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Data Parallel Control (dpCtl)
# Data Parallel Control (dpctl)
#
# Copyright 2020-2021 Intel Corporation
#
Expand Down
Loading