2
2
运行时
标题
2023-12-25 17:41:52
108

我们最近在尝试将一个第三方CUDA软件转码成能在DCU上运行的软件,使用了光源上的“image.sourcefind.cn:5000/dcu/admin/base/dtk:23.10-centos7.6-py310”做为开发镜像。

在原始程序的CMakeLists.txt中,有一句:

find_package(CUDAToolkit REQUIRED)

我将其转变为:

find_package(HIP REQUIRED)

但在编译时会在这一句报错,错误信息是:


CMake Error at /opt/cmake/share/cmake-3.21/Modules/CMakeFindDependencyMacro.cmake:47 (find_package):
  Could not find a package configuration file provided by "hsa-runtime64"
  with any of the following names:

    hsa-runtime64Config.cmake
    hsa-runtime64-config.cmake

  Add the installation prefix of "hsa-runtime64" to CMAKE_PREFIX_PATH or set
  "hsa-runtime64_DIR" to a directory containing one of the above files.  If
  "hsa-runtime64" provides a separate development package or SDK, be sure it
  has been installed.
Call Stack (most recent call first):
  /opt/dtk/lib/cmake/hip/hip-config.cmake:144 (find_dependency)
  CMakeLists.txt:14 (find_package)

在进入"hip-config.cmake"文件中查看时,发现具体报错的是:

find_dependency(hsa-runtime64 HINTS /opt/hyhal)

然而,在光源上的镜像中,并没有"/opt/hyhal"这个路径,而且在"/opt/dtk"下,也搜索不到任何"*runtime*.cmake"或"hsa*.cmake"的文件,请问这个问题该怎么解决?

全部评论(0)
只看楼主
暂无数据
--
楼主
Level.1
0 帖子
楼主热帖
暂无数据