CMake Error at /opt/rocm/hip/cmake/FindHIP.cmake:680 (add library):NO SOURCES given to target: c10_hip
时间: 2023-09-14 11:07:42 浏览: 148
CMake实践-跨平台的c/c++构建工具
5星 · 资源好评率100%
This error message indicates that there are no source files provided to the target "c10_hip" in the HIP module of CMake.
To resolve this error, you need to make sure that there are source files available for the target. You can do this by adding the source files to the CMakeLists.txt file using the "add_library" command.
For example, if you have a source file named "my_source.cpp", you can add it to the target as follows:
```
add_library(c10_hip my_source.cpp)
```
Make sure to replace "my_source.cpp" with the name of your actual source file.
Once you have added the source files to the target, you should be able to build your project without encountering this error message.
阅读全文