运行时
hipsolverZgetrs 报错
2022-11-29 02:08:53
45

我做了hipsolverZgetrs的测试,在矩阵维度小于大约500的时候,程序没有报错,结果和cpu端的lapack的结果是一致的,然而当矩阵维度大于600左右的时候就开始报错了,报的HIP ERROR code =2, 我查了一下对应hipErrorOutOfMemory或者hipErrorMemoryAllocation。 这个错误是在调用hipsolverZgetrs的时候报的,之前的内存hipMalloc并没有报错。这个矩阵很小,应该不至于会是内存不足导致的。

下面是测试结果,总体来说DCU卡比CPU快。 测试结果可重复。

attachmentId-image.png

编译方法:(hipfc 是用gcc和gfortran编译的)
hipfc -lhipblas -lhipsolver -lhipsparse -g dcu_math_zgesv.f03 -L/public/software/mathlib/lapack/gnu/3.8.0/lib64 -lblas -llapack -o zgesv_test

使用环境:

Currently Loaded Modulefiles:

  1. compiler/devtoolset/7.3.1 2) compiler/rocm/dtk-22.04.2 3) mpi/hpcx/2.7.4/gcc-7.3.1

程序运行:

srun --mpi=pmix_v3 zheev_test

期待大佬帮忙,谢谢

全部评论(1)
只看楼主
T
tianlh
1楼
问题回复请见https://forum.sourcefind.cn/thread/241
2022/12/5
没有更多内容了
--
楼主
Level.1
0 帖子
楼主热帖
暂无数据