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
02c9e0a3
Commit
02c9e0a3
authored
Jan 15, 2013
by
yao
Committed by
Andrey Kamaev
Jan 23, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add default clAmdFft and clAmdBlas path
parent
f6d82773
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
67 additions
and
7 deletions
+67
-7
OpenCVDetectOpenCL.cmake
cmake/OpenCVDetectOpenCL.cmake
+67
-7
No files found.
cmake/OpenCVDetectOpenCL.cmake
View file @
02c9e0a3
...
@@ -2,18 +2,78 @@ if(APPLE)
...
@@ -2,18 +2,78 @@ if(APPLE)
set
(
OPENCL_FOUND YES
)
set
(
OPENCL_FOUND YES
)
set
(
OPENCL_LIBRARIES
"-framework OpenCL"
)
set
(
OPENCL_LIBRARIES
"-framework OpenCL"
)
else
()
else
()
#
find_package(OpenCL QUIET)
find_package
(
OpenCL QUIET
)
if
(
WITH_OPENCLAMDFFT
)
if
(
WITH_OPENCLAMDFFT
)
set
(
CLAMDFFT_SEARCH_PATH $ENV{CLAMDFFT_PATH}
)
if
(
NOT CLAMDFFT_SEARCH_PATH
)
if
(
WIN32
)
set
(
CLAMDFFT_SEARCH_PATH
"C:
\\
Program Files (x86)
\\
AMD
\\
clAmdFft"
)
endif
()
endif
()
set
(
CLAMDFFT_INCLUDE_SEARCH_PATH
${
CLAMDFFT_SEARCH_PATH
}
/include
)
if
(
UNIX
)
if
(
CMAKE_SIZEOF_VOID_P EQUAL 4
)
set
(
CLAMDFFT_LIB_SEARCH_PATH /usr/lib
)
else
()
set
(
CLAMDFFT_LIB_SEARCH_PATH /usr/lib64
)
endif
()
else
()
if
(
CMAKE_SIZEOF_VOID_P EQUAL 4
)
set
(
CLAMDFFT_LIB_SEARCH_PATH
${
CLAMDFFT_SEARCH_PATH
}
\\lib32\\import
)
else
()
set
(
CLAMDFFT_LIB_SEARCH_PATH
${
CLAMDFFT_SEARCH_PATH
}
\\lib64\\import
)
endif
()
endif
()
find_path
(
CLAMDFFT_INCLUDE_DIR
find_path
(
CLAMDFFT_INCLUDE_DIR
NAMES clAmdFft.h
)
NAMES clAmdFft.h
find_library
(
CLAMDFFT_LIBRARIES
PATHS
${
CLAMDFFT_INCLUDE_SEARCH_PATH
}
NAMES clAmdFft.Runtime
)
PATH_SUFFIXES clAmdFft
NO_DEFAULT_PATH
)
find_library
(
CLAMDFFT_LIBRARY
NAMES clAmdFft.Runtime
PATHS
${
CLAMDFFT_LIB_SEARCH_PATH
}
NO_DEFAULT_PATH
)
if
(
CLAMDFFT_LIBRARY
)
set
(
CLAMDFFT_LIBRARIES
${
CLAMDFFT_LIBRARY
}
)
else
()
set
(
CLAMDFFT_LIBRARIES
""
)
endif
()
endif
()
endif
()
if
(
WITH_OPENCLAMDBLAS
)
if
(
WITH_OPENCLAMDBLAS
)
set
(
CLAMDBLAS_SEARCH_PATH $ENV{CLAMDBLAS_PATH}
)
if
(
NOT CLAMDBLAS_SEARCH_PATH
)
if
(
WIN32
)
set
(
CLAMDBLAS_SEARCH_PATH
"C:
\\
Program Files (x86)
\\
AMD
\\
clAmdBlas"
)
endif
()
endif
()
set
(
CLAMDBLAS_INCLUDE_SEARCH_PATH
${
CLAMDBLAS_SEARCH_PATH
}
/include
)
if
(
UNIX
)
if
(
CMAKE_SIZEOF_VOID_P EQUAL 4
)
set
(
CLAMDBLAS_LIB_SEARCH_PATH /usr/lib
)
else
()
set
(
CLAMDBLAS_LIB_SEARCH_PATH /usr/lib64
)
endif
()
else
()
if
(
CMAKE_SIZEOF_VOID_P EQUAL 4
)
set
(
CLAMDBLAS_LIB_SEARCH_PATH
${
CLAMDBLAS_SEARCH_PATH
}
\\lib32\\import
)
else
()
set
(
CLAMDBLAS_LIB_SEARCH_PATH
${
CLAMDBLAS_SEARCH_PATH
}
\\lib64\\import
)
endif
()
endif
()
find_path
(
CLAMDBLAS_INCLUDE_DIR
find_path
(
CLAMDBLAS_INCLUDE_DIR
NAMES clAmdBlas.h
)
NAMES clAmdBlas.h
find_library
(
CLAMDBLAS_LIBRARIES
PATHS
${
CLAMDBLAS_INCLUDE_SEARCH_PATH
}
NAMES clAmdBlas
)
PATH_SUFFIXES clAmdBlas
NO_DEFAULT_PATH
)
find_library
(
CLAMDBLAS_LIBRARY
NAMES clAmdBlas
PATHS
${
CLAMDBLAS_LIB_SEARCH_PATH
}
NO_DEFAULT_PATH
)
if
(
CLAMDBLAS_LIBRARY
)
set
(
CLAMDBLAS_LIBRARIES
${
CLAMDBLAS_LIBRARY
}
)
else
()
set
(
CLAMDBLAS_LIBRARIES
""
)
endif
()
endif
()
endif
()
# Try AMD/ATI Stream SDK
# Try AMD/ATI Stream SDK
if
(
NOT OPENCL_FOUND
)
if
(
NOT OPENCL_FOUND
)
...
...
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