Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
0f263e12
Commit
0f263e12
authored
Dec 26, 2014
by
Alexander Smorkalov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Full AARCH64 support with NEON and new CUDA toolkit.
parent
82bd82e2
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
7 deletions
+17
-7
CMakeLists.txt
3rdparty/libpng/CMakeLists.txt
+1
-1
CMakeLists.txt
3rdparty/tbb/CMakeLists.txt
+1
-1
CMakeLists.txt
CMakeLists.txt
+2
-2
OpenCVDetectCUDA.cmake
cmake/OpenCVDetectCUDA.cmake
+11
-3
OpenCVDetectCXXCompiler.cmake
cmake/OpenCVDetectCXXCompiler.cmake
+2
-0
No files found.
3rdparty/libpng/CMakeLists.txt
View file @
0f263e12
...
...
@@ -14,7 +14,7 @@ ocv_include_directories("${CMAKE_CURRENT_SOURCE_DIR}" ${ZLIB_INCLUDE_DIR})
file
(
GLOB lib_srcs *.c
)
file
(
GLOB lib_hdrs *.h
)
if
(
NEON AND CMAKE_SIZEOF_VOID_P EQUAL 4
)
if
(
ARM AND NEON
)
list
(
APPEND lib_srcs arm/filter_neon.S
)
add_definitions
(
-DPNG_ARM_NEON
)
endif
()
...
...
3rdparty/tbb/CMakeLists.txt
View file @
0f263e12
...
...
@@ -204,7 +204,7 @@ endif()
set
(
TBB_SOURCE_FILES
${
lib_srcs
}
${
lib_hdrs
}
)
if
(
ARM
AND NOT WIN32
)
if
(
(
ARM OR AARCH64
)
AND NOT WIN32
)
if
(
NOT ANDROID
)
set
(
TBB_SOURCE_FILES
${
TBB_SOURCE_FILES
}
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/arm_linux_stub.cpp"
)
endif
()
...
...
CMakeLists.txt
View file @
0f263e12
...
...
@@ -226,8 +226,8 @@ OCV_OPTION(ENABLE_SSE41 "Enable SSE4.1 instructions"
OCV_OPTION
(
ENABLE_SSE42
"Enable SSE4.2 instructions"
OFF
IF
(
CMAKE_COMPILER_IS_GNUCXX
AND
(
X86 OR X86_64
))
)
OCV_OPTION
(
ENABLE_AVX
"Enable AVX instructions"
OFF
IF
((
MSVC OR CMAKE_COMPILER_IS_GNUCXX
)
AND
(
X86 OR X86_64
))
)
OCV_OPTION
(
ENABLE_AVX2
"Enable AVX2 instructions"
OFF
IF
((
MSVC OR CMAKE_COMPILER_IS_GNUCXX
)
AND
(
X86 OR X86_64
))
)
OCV_OPTION
(
ENABLE_NEON
"Enable NEON instructions"
OFF IF CMAKE_COMPILER_IS_GNUCXX AND ARM
)
OCV_OPTION
(
ENABLE_VFPV3
"Enable VFPv3-D32 instructions"
OFF IF CMAKE_COMPILER_IS_GNUCXX AND ARM
)
OCV_OPTION
(
ENABLE_NEON
"Enable NEON instructions"
AARCH64 IF CMAKE_COMPILER_IS_GNUCXX
AND
(
ARM OR AARCH64
)
)
OCV_OPTION
(
ENABLE_VFPV3
"Enable VFPv3-D32 instructions"
AARCH64 IF CMAKE_COMPILER_IS_GNUCXX
AND
(
ARM OR AARCH64
)
)
OCV_OPTION
(
ENABLE_NOISY_WARNINGS
"Show all warnings even if they are too noisy"
OFF
)
OCV_OPTION
(
OPENCV_WARNINGS_ARE_ERRORS
"Treat warnings as errors"
OFF
)
OCV_OPTION
(
ENABLE_WINRT_MODE
"Build with Windows Runtime support"
OFF IF WIN32
)
...
...
cmake/OpenCVDetectCUDA.cmake
View file @
0f263e12
...
...
@@ -91,8 +91,13 @@ if(CUDA_FOUND)
if
(
NOT DEFINED __cuda_arch_bin
)
if
(
ANDROID
)
set
(
__cuda_arch_bin
"3.2"
)
set
(
__cuda_arch_ptx
""
)
if
(
ARM
)
set
(
__cuda_arch_bin
"3.2"
)
set
(
__cuda_arch_ptx
""
)
elseif
(
AARCH64
)
set
(
__cuda_arch_bin
"5.2"
)
set
(
__cuda_arch_ptx
""
)
endif
()
else
()
if
(
${
CUDA_VERSION
}
VERSION_LESS
"5.0"
)
set
(
__cuda_arch_bin
"1.1 1.2 1.3 2.0 2.1(2.0) 3.0"
)
...
...
@@ -154,7 +159,10 @@ if(CUDA_FOUND)
if
(
ANDROID
)
set
(
CUDA_NVCC_FLAGS
${
CUDA_NVCC_FLAGS
}
"-Xptxas;-dlcm=ca"
)
set
(
CUDA_NVCC_FLAGS
${
CUDA_NVCC_FLAGS
}
"-target-os-variant=Android"
)
if
(
${
CUDA_VERSION
}
VERSION_LESS
"7.0"
)
# since CUDA 7.0 OS variant is depricated
set
(
CUDA_NVCC_FLAGS
${
CUDA_NVCC_FLAGS
}
"-target-os-variant=Android"
)
endif
()
endif
()
message
(
STATUS
"CUDA NVCC target flags:
${
CUDA_NVCC_FLAGS
}
"
)
...
...
cmake/OpenCVDetectCXXCompiler.cmake
View file @
0f263e12
...
...
@@ -109,6 +109,8 @@ elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "i686.*|i386.*|x86.*|amd64.*|AMD64.*")
set
(
X86 1
)
elseif
(
CMAKE_SYSTEM_PROCESSOR MATCHES
"arm.*|ARM.*"
)
set
(
ARM 1
)
elseif
(
CMAKE_SYSTEM_PROCESSOR MATCHES
"aarch64.*|AARCH64.*"
)
set
(
AARCH64 1
)
endif
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment