Skip to content

Commit

Permalink
finish mac, need test on linux/windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Fixstars-sam committed Dec 20, 2023
1 parent 1eeb133 commit 100f67a
Show file tree
Hide file tree
Showing 7 changed files with 219 additions and 214 deletions.
14 changes: 9 additions & 5 deletions example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ endif()

if(WITH_CUDA)
ion_run(producerx3_gpu producerx3_compile SRCS producerx3_run.cc TARGET_STRING "host-cuda-cuda_capability_50-profile")
if(UNIX)
if(UNIX AND NOT APPLE)
ion_run(sgm_gpu sgm_compile SRCS sgm_run.cc TARGET_STRING "host-cuda-cuda_capability_50-profile")
ion_run(dnn_gpu dnn_compile SRCS dnn_run.cc TARGET_STRING "host-cuda-cuda_capability_50-profile")
ion_run(demo_gpu demo_compile SRCS demo_run.cc TARGET_STRING "host-cuda-cuda_capability_50-profile")
Expand All @@ -38,18 +38,22 @@ endif()
ion_jit(isp_jit SRCS isp.cc)
ion_jit(isp_and_sgm_jit SRCS isp_and_sgm.cc)
ion_jit(dnn_jit SRCS dnn.cc)
ion_jit(v4l2_jit SRCS v4l2.cc)
ion_jit(realsense_jit SRCS realsense.cc)
ion_jit(demo_jit SRCS demo.cc)
ion_jit(imx219_isp_display_jit SRCS imx219_isp_display.cc)
ion_jit(gender_count SRCS gender_count.cc)
ion_jit(io SRCS io.cc)
# ion_jit(u3v_jit SRCS u3v.cc)

if (UNIX AND NOT APPLE)
ion_jit(v4l2_jit SRCS v4l2.cc)
ion_jit(realsense_jit SRCS realsense.cc)

ion_register_test(v4l2 v4l2_jit TARGET_STRING "host-profile")
ion_register_test(realsense realsense_jit TARGET_STRING "host-profile")
endif()

ion_register_test(isp isp_jit TARGET_STRING "host-profile")
ion_register_test(isp_and_sgm isp_and_sgm_jit TARGET_STRING "host-profile")
ion_register_test(v4l2 v4l2_jit TARGET_STRING "host-profile")
ion_register_test(realsense realsense_jit TARGET_STRING "host-profile")
if(WITH_CUDA)
ion_register_test(isp_gpu isp_jit TARGET_STRING "host-cuda-cuda_capability_50-profile")
# Temporaly disabled
Expand Down
32 changes: 16 additions & 16 deletions src/bb/dnn/config.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,22 @@ set(LINK_DIRS
${OpenCV_DIR}/lib)

if (UNIX)
if (APPLE)
set(LIBRARIES
dl
pthread
m
z
${OpenCV_LIBRARIES})
else()
set(LIBRARIES
rt
dl
pthread
m
z
${OpenCV_LIBRARIES})
endif()
if (APPLE)
set(LIBRARIES
dl
pthread
m
z
${OpenCV_LIBRARIES})
else()
set(LIBRARIES
rt
dl
pthread
m
z
${OpenCV_LIBRARIES})
endif()
else()
set(LIBRARIES ${OpenCV_LIBRARIES})
endif()
Loading

0 comments on commit 100f67a

Please sign in to comment.