forked from leejet/stable-diffusion.cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support Moore Threads GPU (leejet#529)
Signed-off-by: Xiaodong Ye <[email protected]>
- Loading branch information
1 parent
9a812fd
commit ec3912b
Showing
3 changed files
with
38 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
ARG MUSA_VERSION=rc3.1.0 | ||
|
||
FROM mthreads/musa:${MUSA_VERSION}-devel-ubuntu22.04 as build | ||
|
||
RUN apt-get update && apt-get install -y cmake | ||
|
||
WORKDIR /sd.cpp | ||
|
||
COPY . . | ||
|
||
RUN mkdir build && cd build && \ | ||
cmake .. -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DSD_MUSA=ON -DCMAKE_BUILD_TYPE=Release && \ | ||
cmake --build . --config Release | ||
|
||
FROM mthreads/musa:${MUSA_VERSION}-runtime-ubuntu22.04 as runtime | ||
|
||
COPY --from=build /sd.cpp/build/bin/sd /sd | ||
|
||
ENTRYPOINT [ "/sd" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters