"platforms/common/vscode:/vscode.git/clone" did not exist on "0aee805025cced0c4d7db88ad39ea13130d08bb1"
codeai-devops.yaml 3.75 KB
Newer Older
yanyan's avatar
yanyan committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
global:
    console_url: localhost:50091
    envs: 
        PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION: python # c++ libprotobuf and python will conflicit

analyzers: # only one analyzer is allowed for one type for now.
    PythonAnalyzer:
        
    SimpleCPPAnalyzer: # $<astex> devops.devs = ["_ci_dev_xxx"] </astex> is allowed in raw sources.
        includes: ["*.cpp", "*.cu", "*.cc", "*.h", "*.hpp", "*.hxx", "*.cxx"]

observers:
    # run test functions when that function change or marked function change.
    test:
        type: TestObserver

    # run dev functions when that function change or marked function change.
    dev:
        type: DevObserver
        pattern: _ci_dev_.*

    clangdev:
        type: CPPDevObserver
        main_pattern: dev_.*\.(cc|cpp|cxx)
        pattern: .*\.(cc|cpp|cxx|h|hpp|hxx)
        compiler: clang++
        executable: build/codeai_dev
        includes: [
            include,
            /usr/local/cuda/include,
            /home/yy/anaconda3/include,
            /home/yy/anaconda3/include/python3.7m,
            third_party/pybind11/include,
            third_party/include,
            /home/yy/library/boost_1_72_0,
        ]
        libpaths: [
            /home/yy/anaconda3/lib,
        ]
        libraries: [-lnvinfer, -lpython3.7m, -lcublas, -lcudart, -ljpeg]
        std: c++2a
        options: [-Wall, -Wextra]

    cudadev:
        type: CPPDevObserver
        main_pattern: dev_.*\.cu
        pattern: .*\.(cc|cpp|cxx|h|hpp|hxx|cu)
        compiler: nvcc
        executable: build/codeai_dev_cuda
        run_cmd: [$(executable)]
        sources: []
        includes: [
            include,
            /usr/local/cuda/include,
            /home/yy/anaconda3/include,
            /home/yy/anaconda3/include/python3.7m,
            third_party/pybind11/include,
            third_party/cutlass/include,
        ]
        libpaths: [
            /usr/local/cuda/lib64,
            /home/yy/anaconda3/lib,
        ]
        libraries: [-lpython3.7m, -lcudart, -lcublas, -ljpeg]
        std: c++14
        options: [
            -Wno-deprecated-declarations,
            "-gencode=arch=compute_52,code=sm_61",
            "-gencode=arch=compute_61,code=sm_61",
            "-gencode=arch=compute_60,code=sm_60",
            "-gencode=arch=compute_70,code=sm_70",
            "-gencode=arch=compute_75,code=sm_75",
        ]

    torchdev:
        type: CPPDevObserver
        main_pattern: torchdev_.*\.(cu|cpp|cc|cxx)
        pattern: .*\.(cc|cpp|cxx|h|hpp|hxx|cu)
        compiler: clang++
        executable: build/codeai_dev_torch
        run_cmd: [$(executable)]
        fail_cmds: # run cmd when pervious run fail with retcode
            -6: [gdb, -ex, run, -ex, bt, -ex, quit, $(executable)] # segfault in unix
        includes: [
            include,
            /home/yy/anaconda3/lib/python3.7/site-packages/torch/include,
            /home/yy/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include,
            /usr/local/cuda/include,
            /home/yy/anaconda3/include,
            /home/yy/anaconda3/include/python3.7m,
            third_party/pybind11/include,
            third_party/cutlass/include,
        ]
        libpaths: [
            /home/yy/anaconda3/lib/python3.7/site-packages/torch/lib,
            /usr/local/cuda/lib64,
            /home/yy/anaconda3/lib,
        ]
        libraries: [-lpython3.7m, -lcublas, -lcudart, -ljpeg, -lpthread, 
                    "-Wl,--no-as-needed,-lc10", 
                    "-Wl,--no-as-needed,-ltorch", 
                    "-Wl,--no-as-needed,-ltorch_cpu", 
                    "-Wl,--no-as-needed,-lc10_cuda", 
                    "-Wl,--no-as-needed,-ltorch_cuda"]
        std: c++2a
        options: [--cuda-gpu-arch=sm_61, -Wno-deprecated-declarations, -D_GLIBCXX_USE_CXX11_ABI=0]