Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Issue]: SD3 cpp implementation build on WIndows issue #114

Closed
Jay19751103 opened this issue Jul 9, 2024 · 3 comments
Closed

[Issue]: SD3 cpp implementation build on WIndows issue #114

Jay19751103 opened this issue Jul 9, 2024 · 3 comments
Labels
generic Build error, or some other issue not caused by an LLVM bug Under Investigation

Comments

@Jay19751103
Copy link

Jay19751103 commented Jul 9, 2024

Problem Description

I try to build sd3 cpp implementation from
https://github.com/leejet/stable-diffusion.cpp

Linux can build and run. but using HIPSDK on windows.
I get the error

cmake .. -G "Ninja" -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DSD_HIPBLAS=ON -DCMAKE_BUILD_TYPE=Release -DAMDGPU_TARGETS=gfx1100

LINK : warning LNK4044: unrecognized option '/v'; ignored
LINK : warning LNK4001: no object files specified; libraries used
LINK : warning LNK4068: /MACHINE not specified; defaulting to X64
LINK : fatal error LNK1561: entry point must be defined

This looks related with -v option in ggml\src\CMakeLists.txt
The line
COMMAND ${CMAKE_C_COMPILER} ${CMAKE_EXE_LINKER_FLAGS} -Wl,-v

The linux can pass the configuration

Anyone can help to solve this

Operating System

Windows 11 Pro 23H2

CPU

AMD 7700X

GPU

AMD Radeon RX 7900 XTX

ROCm Version

ROCm 5.7.1, ROCm 5.7.0

ROCm Component

No response

Steps to Reproduce

following the stable diffusion cpp's get source and build guide with preinstalled HIPSDK 5.7 (5.5 also have same issue)

(Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support

No response

Additional Information

No response

@ppanchad-amd
Copy link

@Jay19751103 Internal ticket has been created to fix this issue. Thanks!

@lamb-j lamb-j added the generic Build error, or some other issue not caused by an LLVM bug label Aug 7, 2024
@schung-amd
Copy link

Hi @Jay19751103, are you still experiencing this issue? I am unable to reproduce the issue with the latest version of the HIP SDK (6.1 at the time of writing), following the guide at https://github.com/leejet/stable-diffusion.cpp/blob/master/docs%2FhipBLAS_on_Windows.md and additionally installing Strawberry Perl as Perl does not ship with Windows.

@schung-amd
Copy link

Closing this for now, as I cannot reproduce the issue with latest HIP SDK. Feel free to reopen this or submit a new issue if you are still experiencing this with current HIP SDK.

@schung-amd schung-amd closed this as not planned Won't fix, can't repro, duplicate, stale Sep 24, 2024
searlmc1 pushed a commit that referenced this issue Nov 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
generic Build error, or some other issue not caused by an LLVM bug Under Investigation
Projects
None yet
Development

No branches or pull requests

4 participants