Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
artyom-beilis committed Aug 16, 2024
1 parent 7094b05 commit 3803f87
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR}/dlprimitives/include)

message(" Pytorch libraries ${TORCH_LIBRARIES}")
message(" Python libraries ${PYTHON_LIBRARIES}")
message(" Python include ${PYTHON_INCLUDE_DIR}")

if(NOT WIN32)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -O2 -Wall")
Expand All @@ -38,7 +39,10 @@ add_library(pt_ocl SHARED
target_compile_features(pt_ocl PRIVATE cxx_std_17)

# Link against LibTorch
target_link_libraries(pt_ocl ${TORCH_LIBRARIES} ${PYTHON_LIBRARIES} ${OCL_LIB} dlprim_core)
target_link_libraries(pt_ocl ${TORCH_LIBRARIES} ${OCL_LIB} dlprim_core)
if(WIN32)
target_link_libraries(pt_ocl ${PYTHON_LIBRARIES})
endif()
set_target_properties(pt_ocl PROPERTIES PREFIX "" OUTPUT_NAME "pt_ocl")
if(NOT WIN32)
set_target_properties(pt_ocl PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/pytorch_ocl/")
Expand Down
2 changes: 1 addition & 1 deletion dlprimitives

0 comments on commit 3803f87

Please sign in to comment.