mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2026-11-26 23:29:53 +00:00
Some checks failed
CI / Build and push container images (push) Has been cancelled
CI / ubuntu-latest-cmake (push) Has been cancelled
CI / ubuntu-latest-cmake-vulkan (push) Has been cancelled
CI / macOS-latest-cmake (push) Has been cancelled
CI / windows-latest-cmake (cpu, -DGGML_NATIVE=OFF -DSD_BUILD_SHARED_LIBS=ON -DSD_BUILD_SHARED_GGML_LIB=ON -DGGML_BACKEND_DL=ON -DGGML_CPU_ALL_VARIANTS=ON) (push) Has been cancelled
CI / windows-latest-cmake (cuda12, -DSD_CUDA=ON -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_CUDA_COMPILER_LAUNCHER=ccache -DSD_BUILD_SHARED_LIBS=ON -DCMAKE_CUDA_ARCHITECTURES='61;70;75;80;86;89;90;100;120' -DCMAKE_CUDA_FL… (push) Has been cancelled
CI / windows-latest-cmake (vulkan, -DSD_VULKAN=ON -DSD_BUILD_SHARED_LIBS=ON -DGGML_NATIVE=OFF -DSD_BUILD_SHARED_GGML_LIB=ON -DGGML_BACKEND_DL=ON -DGGML_CPU_ALL_VARIANTS=ON) (push) Has been cancelled
CI / windows-latest-rocm (push) Has been cancelled
CI / ubuntu-latest-rocm (10.1.0, x64, gfx900;gfx906;gfx908;gfx90a;gfx90c;gfx942;gfx950;gfx1010;gfx1011;gfx1012;gfx1030;gfx1031;gfx1032;gfx1033;gfx1034;gfx1035;gfx1036;gfx1100;gfx1101;gfx1102;gfx1103;gfx1150;gfx1151;gfx1152;gfx1153;gfx1200;gfx1201) (push) Has been cancelled
CI / release (push) Has been cancelled
31 lines
1.3 KiB
Bash
31 lines
1.3 KiB
Bash
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
repo_root="$(cd "$(dirname "$0")/.." && pwd)"
|
|
cd "$repo_root"
|
|
|
|
for f in src/*.cpp src/*.h src/*.hpp \
|
|
src/api/*.cpp src/api/*.h src/api/*.hpp \
|
|
src/conditioning/*.cpp src/conditioning/*.h src/conditioning/*.hpp \
|
|
src/core/*.cpp src/core/*.h src/core/*.hpp \
|
|
src/core/cpu/*.cpp src/core/cpu/*.h \
|
|
src/core/metal/*.mm src/core/metal/*.metal \
|
|
src/core/cuda/*.cu src/core/cuda/*.cuh src/core/cuda/*.h \
|
|
src/core/cuda/sageattention/*.cuh \
|
|
src/core/probe/*.cpp src/core/probe/*.h \
|
|
src/core/vulkan/*.cpp src/core/vulkan/*.h src/core/vulkan/shaders/*.comp \
|
|
src/extensions/*.cpp src/extensions/*.h src/extensions/*.hpp \
|
|
src/pipeline/*.cpp src/pipeline/*.h \
|
|
src/runtime/*.cpp src/runtime/*.h src/runtime/*.hpp \
|
|
src/model/*/*.cpp src/model/*/*.h src/model/*/*.hpp \
|
|
src/tokenizers/*.h src/tokenizers/*.cpp \
|
|
src/model_io/*.h src/model_io/*.cpp examples/cli/*.cpp examples/cli/*.h examples/server/*.cpp \
|
|
examples/common/*.hpp examples/common/*.h examples/common/*.cpp; do
|
|
[[ -e "$f" ]] || continue
|
|
echo "formatting '$f'"
|
|
# if [ "$f" != "stable-diffusion.h" ]; then
|
|
# clang-tidy -fix -p build_linux/ "$f"
|
|
# fi
|
|
clang-format -style=file -i "$f"
|
|
done
|