您好,建议使用dtk25.04
操作系统版本:CentOS Linux release 7.6.181
DTK版本:DTK25.04
驱动版本:/
DCU类型:gfx906
编译器:dtk-25.04/llvm/bin/clang++
编译选项:-lm -pg -g -O3 -I../inc -I../mdspan/include -Wall -fopenacc -fopenmp-targets=amdgcn-amd-amdhsa -Xopenmp-target=amdgcn-amd-amdhsa -march=gfx906 -Wno-openacc-and-cxx -D__HIP_PLATFORM_AMD__ -I/public/home/ghfund4_a41/dtk-25.04/hip/include -L/opt/rocm/lib/ -lhip_hcc -Wall -g -Iinclude -o bin/app obj/main.o -Llib -lmy_kernel
hipconfig版本:6.1.25085
rocm-smi版本:5.6.20
问题描述:hipMallocManaged 返回错误码为1011。
void hip_mem_test(float* A, float* B, float* C, int N) {
auto err = hipInit(0);
std::cout <<err<<std::endl; // 0
err = hipMallocManaged((void**)A,N*sizeof(float));
std::cout <<err<<std::endl; // 1011
}

暂无数据