Skip to content

Commit

Permalink
refactor with c abi code
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyberhan123 committed Nov 29, 2023
1 parent b569263 commit e2acba2
Show file tree
Hide file tree
Showing 6 changed files with 270 additions and 240 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,15 +151,15 @@ jobs:
uses: Jimver/[email protected]
with:
cuda: '12.2.0'

- name: Peek cuda-toolkit info
id: peek_cuda_toolkit
if: ${{ matrix.build == 'cuda12' }}
run: |
echo "Installed cuda version is: ${{steps.cuda-toolkit.outputs.cuda}}"
echo "Cuda install location: ${{steps.cuda-toolkit.outputs.CUDA_PATH}}"
nvcc -V
- name: Build
id: cmake_build
run: |
Expand Down Expand Up @@ -190,7 +190,8 @@ jobs:
id: pack_artifacts
if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/main' ) || github.event.inputs.create_release == 'true' }}
run: |
7z a stable-diffusion-${{ env.BRANCH_NAME }}-${{ steps.commit.outputs.short }}-bin-win-${{ matrix.build }}-x64.zip .\build\bin\Release\sd-abi.dll
Rename-Item -Path .\build\bin\Release\sd-abi.dll -NewName sd-abi_${{ matrix.build }}.dll
7z a stable-diffusion-${{ env.BRANCH_NAME }}-${{ steps.commit.outputs.short }}-bin-win-${{ matrix.build }}-x64.zip .\build\bin\Release\sd-abi_${{ matrix.build }}.dll
- name: Upload artifacts
if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/main' ) || github.event.inputs.create_release == 'true' }}
Expand Down
2 changes: 2 additions & 0 deletions .idea/stable-diffusion.cpp-build.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 28 additions & 6 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ set(SD_ABI sd-abi)

add_library(${SD_ABI} SHARED
stable-diffusion-abi.cpp
stable-diffusion-abi.h
base64.hpp)
stable-diffusion-abi.h)

target_include_directories(${SD_ABI} PUBLIC .)

Expand Down
Loading

0 comments on commit e2acba2

Please sign in to comment.