File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # - Find clBLAS (includes and library)
2+ # This module defines
3+ # CLBLAS_INCLUDE_DIR
4+ # CLBLAS_LIBRARIES
5+ # CLBLAS_FOUND
6+ # also defined, but not for general use are
7+ # CLBLAS_LIBRARY, where to find the library.
8+
9+ find_path (CLBLAS_INCLUDE_DIR clBLAS.h
10+ /usr/include/
11+ /usr/local/include/
12+ )
13+
14+ set (CLBLAS_NAMES ${CLBLAS_NAMES} clBLAS)
15+ find_library (CLBLAS_LIBRARY
16+ NAMES ${CLBLAS_NAMES}
17+ PATHS /usr/lib64/ /usr/local/lib64/ /usr/lib /usr/local/lib
18+ )
19+
20+ if (CLBLAS_LIBRARY AND CLBLAS_INCLUDE_DIR)
21+ set (CLBLAS_LIBRARIES ${CLBLAS_LIBRARY} )
22+ set (CLBLAS_FOUND "YES" )
23+ else ()
24+ set (CLBLAS_FOUND "NO" )
25+ endif ()
26+
27+ if (CLBLAS_FOUND)
28+ if (NOT CLBLAS_FIND_QUIETLY)
29+ message (STATUS "Found a clBLAS library: ${CLBLAS_LIBRARIES} " )
30+ endif ()
31+ else ()
32+ if (CLBLAS_FIND_REQUIRED)
33+ message (FATAL_ERROR "Could not find a clBLAS library" )
34+ endif ()
35+ endif ()
36+
37+ # Deprecated declarations.
38+ set (NATIVE_CLBLAS_INCLUDE_PATH ${CLBLAS_INCLUDE_DIR} )
39+ get_filename_component (NATIVE_CLBLAS_LIB_PATH ${CLBLAS_LIBRARY} PATH )
40+
41+ mark_as_advanced (
42+ CLBLAS_LIBRARY
43+ CLBLAS_INCLUDE_DIR
44+ )
Original file line number Diff line number Diff line change 1+ # - Find clBlast (includes and library)
2+ # This module defines
3+ # CLBLAST_INCLUDE_DIR
4+ # CLBLAST_LIBRARIES
5+ # CLBLAST_FOUND
6+ # also defined, but not for general use are
7+ # CLBLAST_LIBRARY, where to find the library.
8+
9+ find_path (CLBLAST_INCLUDE_DIR clblast.h
10+ /usr/include/
11+ /usr/local/include/
12+ )
13+
14+ set (CLBLAST_NAMES ${CLBLAST_NAMES} clblast)
15+ find_library (CLBLAST_LIBRARY
16+ NAMES ${CLBLAST_NAMES}
17+ PATHS /usr/lib64/ /usr/local/lib64/ /usr/lib /usr/local/lib
18+ )
19+
20+ if (CLBLAST_LIBRARY AND CLBLAST_INCLUDE_DIR)
21+ set (CLBLAST_LIBRARIES ${CLBLAST_LIBRARY} )
22+ set (CLBLAST_FOUND "YES" )
23+ else ()
24+ set (CLBLAST_FOUND "NO" )
25+ endif ()
26+
27+ if (CLBLAST_FOUND)
28+ if (NOT CLBLAST_FIND_QUIETLY)
29+ message (STATUS "Found a clBlast library: ${CLBLAST_LIBRARIES} " )
30+ endif ()
31+ else ()
32+ if (CLBLAST_FIND_REQUIRED)
33+ message (FATAL_ERROR "Could not find a clBlast library" )
34+ endif ()
35+ endif ()
36+
37+ # Deprecated declarations.
38+ set (NATIVE_CLBLAST_INCLUDE_PATH ${CLBLAST_INCLUDE_DIR} )
39+ get_filename_component (NATIVE_CLBLAST_LIB_PATH ${CLBLAST_LIBRARY} PATH )
40+
41+ mark_as_advanced (
42+ CLBLAST_LIBRARY
43+ CLBLAST_INCLUDE_DIR
44+ )
Original file line number Diff line number Diff line change 1+ # - Find clBlast (includes and library)
2+ # This module defines
3+ # CLBLAST_INCLUDE_DIR
4+ # CLBLAST_LIBRARIES
5+ # CLBLAST_FOUND
6+ # also defined, but not for general use are
7+ # CLBLAST_LIBRARY, where to find the library.
8+
9+ set (NVRTC_NAMES ${NVRTC_NAMES} nvrtc)
10+ find_library (NVRTC_LIBRARY
11+ NAMES ${NVRTC_NAMES}
12+ PATHS /usr/lib64/ /usr/local/lib64/ /usr/lib /usr/local/lib /usr/lib/x86_64-linux-gnu/
13+ )
14+
15+ if (NVRTC_LIBRARY)
16+ set (NVRTC_LIBRARIES ${NVRTC_LIBRARY} )
17+ set (NVRTC_FOUND "YES" )
18+ else ()
19+ set (NVRTC_FOUND "NO" )
20+ endif ()
21+
22+ if (NVRTC_FOUND)
23+ if (NOT NVRTC_FIND_QUIETLY)
24+ message (STATUS "Found NVRTC library: ${NVRTC_LIBRARIES} " )
25+ endif ()
26+ else ()
27+ if (NVRTC_FIND_REQUIRED)
28+ message (FATAL_ERROR "Could not find NVRTC library" )
29+ endif ()
30+ endif ()
31+
32+ # Deprecated declarations.
33+ get_filename_component (NATIVE_NVRTC_LIB_PATH ${NVRTC_LIBRARY} PATH )
34+
35+ mark_as_advanced (NVRTC_LIBRARY )
You can’t perform that action at this time.
0 commit comments