您可以检查下系统cmake版本,试试更换cmake版本为3.29是否还有问题
测试环境:
openeuler-2403系统将DTK-24.04.3-CentOS8.5-x86_64.tar解压安装到/opt/dtk-24.04.3,执行source /opt/dtk-24.04.3/env.sh
下载https://github.com/zjin-lcf/HeCBench.git
cd HeCBench-master/src/fft-hip
[ fft-hip]$ make
hipcc -std=c++14 -Wall -I../fft-cuda -O3 -c main.cu -o main.o
In file included from In file included from In file included from <built-in> <built-in> <built-in> :::111: |
|---|
| : |
| /opt/dtk-24.04.3/llvm/lib/clang/15.0.0/include/__clang_hip_runtime_wrapper.h/opt/dtk-24.04.3/llvm/lib/clang/15.0.0/include/__clang_hip_runtime_wrapper.h/opt/dtk-24.04.3/llvm/lib/clang/15.0.0/include/__clang_hip_runtime_wrapper.h:::505050:::101010::: fatal error: fatal error: fatal error: 'cmath' file not found'cmath' file not found'cmath' file not found |
#include <cmath>
#include <cmath> ^~~~~~~#include <cmath>
^~~~~~~ ^~~~~~~
1 error generated when compiling for gfx926.
11 error error generated generated when compiling for when compiling for gfx928gfx906.
.
make: *** [Makefile:51: main.o] Error 1
备注: 使用DTK-23.10-openEuler22.03-x86_64.tar.gz 同样有这个问题。

暂无数据