mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2026-11-12 11:56:36 +00:00
fix: initialize HIP linking in the parent CMake scope
This commit is contained in:
1 parent
cfdabe3793
commit
1769066450
3 files changed
+15
-8
No files matched your search
@@ -365,6 +365,9 @@ if (SD_CUDA)
|
||||
endif()
|
||||
set(SD_BACKEND_REGISTRATIONS)
|
||||
if (NOT SD_USE_UPSTREAM_GGML AND (SD_CUDA OR SD_HIPBLAS OR SD_MUSA))
|
||||
if(SD_HIPBLAS)
|
||||
include(cmake/hip.cmake)
|
||||
endif()
|
||||
add_subdirectory(src/core/cuda)
|
||||
foreach(VENDOR CUDA HIP MUSA)
|
||||
if(SD_${VENDOR} OR (VENDOR STREQUAL "HIP" AND SD_HIPBLAS))
|
||||
|
||||
Reference in new issue
Block a user