"lightx2v/models/input_encoders/hf/llama/model.py" did not exist on "a50bcc535aaf63e209302ea89be5dc832980a402"
CMakeLists.txt 1.97 KB
Newer Older
1
2
3
4
project(migraphx-doc)
find_package(ROCM REQUIRED)

include(ROCMDoxygenDoc)
Paul's avatar
Paul committed
5

6
set(DOXYGEN_OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/doxygen)
7
rocm_add_doxygen_doc(
Paul's avatar
Paul committed
8
9
    OUTPUT_DIRECTORY ${DOXYGEN_OUTPUT}
    INPUT 
10
        ${CMAKE_SOURCE_DIR}/src
Paul's avatar
Paul committed
11
    INCLUDE_PATH
12
13
14
        ${CMAKE_SOURCE_DIR}/src/include
        ${CMAKE_SOURCE_DIR}/src/targets/cpu/include
        ${CMAKE_SOURCE_DIR}/src/targets/gpu/include
Paul's avatar
Paul committed
15
    STRIP_FROM_INC_PATH
16
17
18
        ${CMAKE_SOURCE_DIR}/src/include
        ${CMAKE_SOURCE_DIR}/src/targets/cpu/include
        ${CMAKE_SOURCE_DIR}/src/targets/gpu/include
19
    EXCLUDE_PATTERNS
20
21
        ${CMAKE_SOURCE_DIR}/src/targets/gpu/kernels
        ${CMAKE_SOURCE_DIR}/src/targets/gpu/device
Paul's avatar
Paul committed
22
    SEARCH_INCLUDES YES
Paul's avatar
Paul committed
23
24
25
26
27
28
29
30
    MACRO_EXPANSION YES
    RECURSIVE YES
    GENERATE_XML YES
    GENERATE_LATEX YES
    USE_PDFLATEX YES
    CALL_GRAPH YES
    CALLER_GRAPH YES
    BUILTIN_STL_SUPPORT YES
Paul's avatar
Paul committed
31
    PROJECT_NAME MIGraphX
Paul's avatar
Paul committed
32
33
34
35
36
37
38
39
    SORT_MEMBERS_CTORS_1ST YES
    SOURCE_BROWSER YES
    GENERATE_TREEVIEW YES
    REFERENCED_BY_RELATION YES
    REFERENCES_RELATION YES
    REFERENCES_LINK_SOURCE YES
    EXTRACT_ALL YES
    ENUM_VALUES_PER_LINE 1
Paul's avatar
Paul committed
40
    FULL_PATH_NAMES YES
41
    WARN_LOGFILE "${DOXYGEN_OUTPUT}/DoxygenWarningLog.txt"
Paul's avatar
Paul committed
42
    PREDEFINED DOXYGEN
Paul's avatar
Paul committed
43
44
)

45
46
include(ROCMSphinxDoc)
rocm_add_sphinx_doc(src 
Paul's avatar
Paul committed
47
    BUILDER html 
48
    OUTPUT_DIR html
Paul's avatar
Paul committed
49
50
51
    VARS 
        breathe_projects.proj=${DOXYGEN_OUTPUT}/xml
        breathe_default_project=proj
52
    DEPENDS doxygen
Paul's avatar
Paul committed
53
)
Paul's avatar
Paul committed
54

Paul's avatar
Paul committed
55
56
find_package(LATEX)
if(LATEX_FOUND)
57
    rocm_add_sphinx_doc(src 
Paul's avatar
Paul committed
58
59
60
61
62
63
64
65
        BUILDER latex
        OUTPUT_DIR pdf
        VARS 
            breathe_projects.proj=${DOXYGEN_OUTPUT}/xml
            breathe_default_project=proj
        DEPENDS doxygen
    )
else()
66
    message("Latex builder not found. Latex builder is required only for building the PDF documentation for MIGraphX and is not necessary for building the library, or any other components. To build PDF documentation run make in ${CMAKE_CURRENT_SOURCE_DIR}/pdf, once a latex builder is installed.")
Paul's avatar
Paul committed
67
68
endif()