请问一下我使用Z100用cmake编译ollama0.3.5时,报如下错误应该如何修正?
我正在使用的是基于DTK24.04.3版本的Docker容器,所有环境变量都设置好了,采用CMAKE编译时报如下错误,请问应该怎么解决?
CMake Error in /data1/home/xgd_wangqs/program_files/ollama-dcu/llm/build/linux/x86_64/rocm/CMakeFiles/CMakeScratch/TryCompile-jye78b/CMakeLists.txt: Imported target "hip-lang::device" includes non-existent path
"HSA_HEADER-NOTFOUND"
in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:
-
The path was deleted, renamed, or moved to another location.
-
An install or uninstall procedure did not complete successfully.
-
The installation package was faulty and references files it does not provide.
CMake Error at /opt/cmake/share/cmake-3.26/Modules/CMakeDetermineCompilerABI.cmake:57 (try_compile): Failed to generate test project build system. Call Stack (most recent call first): /opt/cmake/share/cmake-3.26/Modules/CMakeTestHIPCompiler.cmake:29 (CMAKE_DETERMINE_COMPILER_ABI) ggml/src/CMakeLists.txt:437 (enable_language)