leejet / stable-diffusion.cpp

Stable Diffusion and Flux in pure C/C++
MIT License
3.33k stars 280 forks source link

Cmake error with HIPBLAS on Windows #300

Closed Jay19751103 closed 2 months ago

Jay19751103 commented 2 months ago

Hi

I got the error as following D:\Tmp\stable-diffusion.cpp\build>cmake .. -G "Ninja" -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DSD_HIPBLAS=ON -DCMAKE_BUILD_TYPE=Release -DAMDGPU_TARGETS=gfx1100 -- SD_STANDALONE: ON Use HIPBLAS as backend stable-diffusion Build static library -- CMAKE_SYSTEM_PROCESSOR: AMD64 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

I have tried different HIPSDK (5.5 and 5.7), it's same. How to fix this?

Jay19751103 commented 2 months ago

Reinstall to another pc. it also have this warning , error. but the build can link successfully I'll close this.