Skip to content

Commit 4531655

Browse files
authored
Fix/minor issues (#159)
* Remove whitespace. * Remove numpy and python look up in CMakeLists.txt
1 parent 68da1ba commit 4531655

File tree

2 files changed

+1
-23
lines changed

2 files changed

+1
-23
lines changed

backends/CMakeLists.txt

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -38,28 +38,8 @@ function (check_for_dpcpp)
3838
endif()
3939
endfunction()
4040

41-
function (check_for_numpy_inc)
42-
string(COMPARE EQUAL "${NUMPY_INCLUDE_DIR}" "" no_numpy_inc)
43-
if(${no_dpcpp_root})
44-
message(FATAL_ERROR "Set the NUMPY_INCLUDE_DIR argument providing the \
45-
path to NumPy Headers.")
46-
else()
47-
message(STATUS "NUMPY_INCLUDE_DIR: ${NUMPY_INCLUDE_DIR}")
48-
endif()
49-
50-
string(COMPARE EQUAL "${PYTHON_INCLUDE_DIR}" "" no_python_inc)
51-
if(${no_dpcpp_root})
52-
message(FATAL_ERROR "Set the PYTHON_INCLUDE_DIR argument providing the \
53-
path to Python Headers.")
54-
else()
55-
message(STATUS "PYTHON_INCLUDE_DIR: ${PYTHON_INCLUDE_DIR}")
56-
endif()
57-
endfunction()
58-
5941
# Check for dpcpp in the specified DPCPP_ROOT
6042
check_for_dpcpp()
61-
# Check if the locations of Numpy and Python headers were provided
62-
check_for_numpy_inc()
6343

6444
if(WIN32)
6545
set(CMAKE_CXX_COMPILER:PATH "${DPCPP_ROOT}/bin/dpcpp")
@@ -104,8 +84,6 @@ target_include_directories(
10484
DPPLSyclInterface
10585
PRIVATE
10686
${CMAKE_SOURCE_DIR}/include/
107-
${PYTHON_INCLUDE_DIR}
108-
${NUMPY_INCLUDE_DIR}
10987
)
11088

11189
if(WIN32)

dpctl/_sycl_core.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ cdef class SyclQueue:
387387
ret._context = ctx
388388
ret._device = dev
389389
return ret
390-
390+
391391
def __dealloc__ (self):
392392
DPPLQueue_Delete(self._queue_ref)
393393

0 commit comments

Comments
 (0)