Skip to content

Remove OpenCL interface #138

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 8 commits into from
Oct 23, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Changelog
All notable changes to this project will be documented in this file.

## [Unreleased]
### Removed
- The Legacy OpenCL interface.

## [0.3.6] - 2020-10-06
### Added
- Changelog was added for dpctl.
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

What?
====
A lightweight Python package exposing a subset of OpenCL and SYCL
functionalities.
A lightweight Python package exposing a subset of SYCL functionalities.

Requirements
============
Expand Down
38 changes: 0 additions & 38 deletions backends/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,6 @@ else()
message(FATAL_ERROR "Unsupported system.")
endif()


set(OpenCL_INCLUDE_DIR "${DPCPP_ROOT}/include/sycl")
set(OpenCL_LIBRARY "${DPCPP_ROOT}/lib/libOpenCL.so")

message(STATUS "OpenCL_INCLUDE_DIR: ${OpenCL_INCLUDE_DIR}")
message(STATUS "OpenCL_LIBRARY: ${OpenCL_LIBRARY}")

add_library(
DPPLSyclInterface
SHARED
Expand All @@ -108,13 +101,6 @@ add_library(
source/dppl_utils.cpp
)

# Install DPPLOpenCLInterface
add_library(
DPPLOpenCLInterface
SHARED
source/dppl_opencl_interface.c
)

# Install DPPLSyclInterface
target_include_directories(
DPPLSyclInterface
Expand All @@ -124,18 +110,6 @@ target_include_directories(
${NUMPY_INCLUDE_DIR}
)

target_include_directories(
DPPLOpenCLInterface
PRIVATE
${CMAKE_SOURCE_DIR}/include/
)

target_include_directories(
DPPLOpenCLInterface
PUBLIC
${OpenCL_INCLUDE_DIR}
)

if(WIN32)
message(
STATUS
Expand All @@ -152,10 +126,6 @@ if(WIN32)
PRIVATE ${DPCPP_ROOT}/lib/sycl.lib
PRIVATE ${DPCPP_ROOT}/lib/OpenCL.lib
)
target_link_libraries(
DPPLOpenCLInterface
PRIVATE ${DPCPP_ROOT}/lib/OpenCL.lib
)
endif()

install(
Expand All @@ -165,14 +135,6 @@ install(
"${CMAKE_INSTALL_PREFIX}/lib/"
)

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

# Install all headers
file(GLOB HEADERS "${CMAKE_SOURCE_DIR}/include/*.h*")
foreach(HEADER ${HEADERS})
Expand Down
Loading