We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf8238e commit 769266aCopy full SHA for 769266a
CMakeLists.txt
@@ -386,6 +386,9 @@ if (LLAMA_HIPBLAS)
386
message(STATUS "HIP and hipBLAS found")
387
add_compile_definitions(GGML_USE_HIPBLAS GGML_USE_CUBLAS)
388
add_library(ggml-rocm OBJECT ggml-cuda.cu ggml-cuda.h)
389
+ if (BUILD_SHARED_LIBS)
390
+ set_target_properties(ggml-rocm PROPERTIES POSITION_INDEPENDENT_CODE ON)
391
+ endif()
392
if (LLAMA_CUDA_FORCE_DMMV)
393
target_compile_definitions(ggml-rocm PRIVATE GGML_CUDA_FORCE_DMMV)
394
endif()
0 commit comments