Skip to content

Commit 8c4ffbb

Browse files
author
Diptorup Deb
committed
Merge branch 'upstream_master'
2 parents 425d841 + d8e7104 commit 8c4ffbb

File tree

15 files changed

+8
-2447
lines changed

15 files changed

+8
-2447
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Changelog
22
All notable changes to this project will be documented in this file.
33

4+
## [Unreleased]
5+
### Removed
6+
- The Legacy OpenCL interface.
7+
48
## [0.3.6] - 2020-10-06
59
### Added
610
- Changelog was added for dpctl.

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22

33
What?
44
====
5-
A lightweight Python package exposing a subset of OpenCL and SYCL
6-
functionalities.
5+
A lightweight Python package exposing a subset of SYCL functionalities.
76

87
Requirements
98
============

backends/CMakeLists.txt

Lines changed: 3 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -76,23 +76,14 @@ if(WIN32)
7676
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Qstd=c++17")
7777
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -ggdb3 -DDEBUG ")
7878
elseif(UNIX)
79-
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} \
80-
-Wall -Wextra -Winit-self -Wuninitialized -Wmissing-declarations \
81-
-fdiagnostics-color=auto -O3 \
82-
")
79+
set(SDL_FLAGS "-fstack-protector -fstack-protector-all -fpic -fPIC -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -fno-strict-overflow -fno-delete-null-pointer-checks")
80+
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${SDL_FLAGS} -Wall -Wextra -Winit-self -Wuninitialized -Wmissing-declarations -fdiagnostics-color=auto")
8381
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -ggdb3 -DDEBUG ")
84-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17 -fsycl")
82+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${SDL_FLAGS} -std=c++17 -fsycl")
8583
else()
8684
message(FATAL_ERROR "Unsupported system.")
8785
endif()
8886

89-
90-
set(OpenCL_INCLUDE_DIR "${DPCPP_ROOT}/include/sycl")
91-
set(OpenCL_LIBRARY "${DPCPP_ROOT}/lib/libOpenCL.so")
92-
93-
message(STATUS "OpenCL_INCLUDE_DIR: ${OpenCL_INCLUDE_DIR}")
94-
message(STATUS "OpenCL_LIBRARY: ${OpenCL_LIBRARY}")
95-
9687
add_library(
9788
DPPLSyclInterface
9889
SHARED
@@ -108,13 +99,6 @@ add_library(
10899
source/dppl_utils.cpp
109100
)
110101

111-
# Install DPPLOpenCLInterface
112-
add_library(
113-
DPPLOpenCLInterface
114-
SHARED
115-
source/dppl_opencl_interface.c
116-
)
117-
118102
# Install DPPLSyclInterface
119103
target_include_directories(
120104
DPPLSyclInterface
@@ -124,18 +108,6 @@ target_include_directories(
124108
${NUMPY_INCLUDE_DIR}
125109
)
126110

127-
target_include_directories(
128-
DPPLOpenCLInterface
129-
PRIVATE
130-
${CMAKE_SOURCE_DIR}/include/
131-
)
132-
133-
target_include_directories(
134-
DPPLOpenCLInterface
135-
PUBLIC
136-
${OpenCL_INCLUDE_DIR}
137-
)
138-
139111
if(WIN32)
140112
message(
141113
STATUS
@@ -152,10 +124,6 @@ if(WIN32)
152124
PRIVATE ${DPCPP_ROOT}/lib/sycl.lib
153125
PRIVATE ${DPCPP_ROOT}/lib/OpenCL.lib
154126
)
155-
target_link_libraries(
156-
DPPLOpenCLInterface
157-
PRIVATE ${DPCPP_ROOT}/lib/OpenCL.lib
158-
)
159127
endif()
160128

161129
install(
@@ -165,14 +133,6 @@ install(
165133
"${CMAKE_INSTALL_PREFIX}/lib/"
166134
)
167135

168-
install(
169-
TARGETS
170-
DPPLOpenCLInterface
171-
LIBRARY
172-
DESTINATION
173-
"${CMAKE_INSTALL_PREFIX}/lib/"
174-
)
175-
176136
# Install all headers
177137
file(GLOB HEADERS "${CMAKE_SOURCE_DIR}/include/*.h*")
178138
foreach(HEADER ${HEADERS})

0 commit comments

Comments
 (0)