1 Star 0 Fork 2

SegmentFault/OclFastGpu

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
CMakeLists.txt 894 Bytes
一键复制 编辑 原始数据 按行查看 历史
devon.hao 提交于 2020-05-06 11:47 . ocl fast加速
cmake_minimum_required(VERSION 2.8)
SET(CMAKE_TOOLCHAIN_FILE "hisi.cmake")
include(gpu/gpumodule.cmake)
project(compute_demo01)
SET(CMAKE_BUILD_TYPE Release)
SET(CMAKE_CXX_FLAGS "-O3 -Wall -D_LINUX -D_REENTRANT -Wno-unused-variable -Wno-unused-but-set-variable -Wno-unknown-pragmas -std=c++11 -w -lpthread -ldl")
add_definitions("-D__ARM_NEON__=1")
set_property(SOURCE ${SRC_FILE} APPEND_STRING PROPERTY COMPILE_FLAGS "-mfpu=neon")
include_directories( ${PROJECT_SOURCE_DIR}/gpu/include
${PROJECT_SOURCE_DIR}/include/CL_2_1
${OpenCV_INCLUDE_DIRS})
link_directories( ${PROJECT_SOURCE_DIR}/lib ${OpenCV_LIBS_DIRS})
LIST(APPEND LINK_LIBS
-lmali
-lOpenCL
${OpenCV_LIBS}
)
LIST(APPEND SOURCEFILES
${PROJECT_SOURCE_DIR}/src/demo01.cpp
)
add_executable(gpu_demo01 ${SOURCEFILES})
target_link_libraries(gpu_demo01 ${LINK_LIBS} )
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/segmentfault/OclFastGpu.git
git@gitee.com:segmentfault/OclFastGpu.git
segmentfault
OclFastGpu
OclFastGpu
master

搜索帮助