Skip to content

Qwen3.8-Flash-Next on any consumer hardware: one-click install for Windows / Linux. Strata inference engine, OpenAI/Anthropic API on localhost, optional image input.

C++

Fix #3359: the HIP picture reader is built position independent so it links on Linux

Niko122198faf8139e51
diff --git a/tools/vision/CMakeLists.txt b/tools/vision/CMakeLists.txt
index 7d8a3479a..4d16da550 100644
--- a/tools/vision/CMakeLists.txt
+++ b/tools/vision/CMakeLists.txt
@@ -86,6 +86,9 @@ if(STRATA_VISION_HIP)
set(AMDGPU_TARGETS "${STRATA_VISION_HIP_ARCHS}" CACHE STRING "" FORCE)
set(GPU_TARGETS "${STRATA_VISION_HIP_ARCHS}" CACHE STRING "" FORCE)
set(CMAKE_HIP_ARCHITECTURES "${STRATA_VISION_HIP_ARCHS}" CACHE STRING "" FORCE)
+ # #3359: a Linux toolchain links a PIE; ggml-hip's objects must be position independent (the engine's HIP build says the same in
+ # cmake/hip_backend.cmake). Only for the HIP reader: the other readers' builds stay as they were.
+ set(CMAKE_POSITION_INDEPENDENT_CODE ON)
endif()
add_subdirectory(${LLAMA_DIR} llama EXCLUDE_FROM_ALL)