打开微信,使用扫一扫进入页面后,点击右上角菜单,
点击“发送给朋友”或“分享到朋友圈”完成分享
./common12/mlu_gemm16.cpp: In function 'void cnrtConvertFloatToHalfArray(uint16_t*, const float*, int)':
./common12/mlu_gemm16.cpp:45:38: error: 'cnrtConvertFloatToHalf' was not declared in this scope
cnrtConvertFloatToHalf(x+i,y[i]);
^
In file included from ./common12/mlu_gemm16.cpp:30:0:
./common12/mlu_gemm16.cpp: In function 'int Mlu_gemm(float*, float*, float*, int32_t, int32_t, int32_t, float&)':
./common12/mlu_gemm16.cpp:60:37: error: 'cnrtCreateQueue' was not declared in this scope
CNRT_CHECK(cnrtCreateQueue(&pQueue));
^
/usr/local/bangpy_neuware_install_dir/usr/local/neuware/include/cnrt.h:5000:21: note: in definition of macro 'CNRT_CHECK'
cnrtRet_t ret = val; \
^
./common12/mlu_gemm16.cpp:197:4: error: 'cnrtKernelInitParam_t' was not declared in this scope
cnrtKernelInitParam_t init_param;
^
In file included from ./common12/mlu_gemm16.cpp:30:0:
./common12/mlu_gemm16.cpp:198:42: error: 'init_param' was not declared in this scope
CNRT_CHECK(cnrtCreateKernelInitParam(&init_param));
路径配置为usr/local/neuware/include
热门帖子
精华帖子