File tree Expand file tree Collapse file tree 3 files changed +44
-34
lines changed Expand file tree Collapse file tree 3 files changed +44
-34
lines changed Original file line number Diff line number Diff line change 1616 BRANCH_NAME : ${{ github.head_ref || github.ref_name }}
1717
1818jobs :
19- ubuntu-latest-cmake-sanitizer :
20- runs-on : ubuntu-latest
21-
22- continue-on-error : true
23-
24- strategy :
25- matrix :
26- sanitizer : [ADDRESS, THREAD, UNDEFINED]
27- build_type : [Debug, Release]
28-
29- steps :
30- - name : Clone
31- id : checkout
32- uses : actions/checkout@v3
33- with :
34- submodules : ' recursive'
35-
36- - name : Dependencies
37- id : depends
38- run : |
39- sudo apt-get update
40- sudo apt-get install build-essential
41-
42- - name : Build
43- id : cmake_build
44- run : |
45- mkdir build
46- cd build
47- cmake .. -DGGML_SANITIZE_${{ matrix.sanitizer }}=ON -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
48- cmake --build . --config ${{ matrix.build_type }}
19+ # ubuntu-latest-cmake-sanitizer:
20+ # runs-on: ubuntu-latest
21+ #
22+ # continue-on-error: true
23+ #
24+ # strategy:
25+ # matrix:
26+ # sanitizer: [ADDRESS, THREAD, UNDEFINED]
27+ # build_type: [Debug, Release]
28+ #
29+ # steps:
30+ # - name: Clone
31+ # id: checkout
32+ # uses: actions/checkout@v3
33+ # with:
34+ # submodules: 'recursive'
35+ #
36+ # - name: Dependencies
37+ # id: depends
38+ # run: |
39+ # sudo apt-get update
40+ # sudo apt-get install build-essential
41+ #
42+ # - name: Build
43+ # id: cmake_build
44+ # run: |
45+ # mkdir build
46+ # cd build
47+ # cmake .. -DGGML_SANITIZE_${{ matrix.sanitizer }}=ON -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
48+ # cmake --build . --config ${{ matrix.build_type }}
4949
5050 ubuntu-latest-cmake :
5151 runs-on : ubuntu-latest
Original file line number Diff line number Diff line change @@ -54,6 +54,8 @@ add_library(${SD_ABI} SHARED
5454
5555target_include_directories (${SD_ABI} PUBLIC .)
5656
57+ set_target_properties (ggml PROPERTIES POSITION_INDEPENDENT_CODE ON )
58+ set_target_properties (stable-diffusion PROPERTIES POSITION_INDEPENDENT_CODE ON )
5759set_target_properties (${SD_ABI} PROPERTIES POSITION_INDEPENDENT_CODE ON )
5860target_compile_definitions (${SD_ABI} PRIVATE STABLE_DIFFUSION_SHARED STABLE_DIFFUSION_BUILD)
5961target_link_libraries (${SD_ABI} PRIVATE ggml stable-diffusion ${CMAKE_THREAD_LIBS_INIT} )
You can’t perform that action at this time.
0 commit comments