Skip to content

[Compile Bug] pr60551 引入 Linux 环境下源码编译预测库报错:18 errors detected in the compilation of "/Paddle/paddle/phi/kernels/funcs/gather_scatter_functor.cu". #60673

@EmmonsCurse

Description

@EmmonsCurse

bug描述 Describe the Bug

1、报错信息

#60551 改动引入 Linux 环境下裸机源码编译预测库报错(GPU&XPU 联编),部分错误日志如下:

[00:55:13]	/home/disk1/teamcity/work/35d35f7d19925f81/Paddle/paddle/phi/kernels/funcs/gather_scatter_functor.cu(385): error: identifier "cudaMallocAsync" is undefined
[00:55:13]	          detected during instantiation of "void phi::funcs::gpu_gather_kernel<tensor_t,index_t>(phi::DenseTensor, int, const phi::DenseTensor &, phi::DenseTensor, __nv_bool, const phi::DeviceContext &) [with tensor_t=int, index_t=int]" 
[00:55:13]	(1317): here
[00:55:13]	
[00:55:13]	/home/disk1/teamcity/work/35d35f7d19925f81/Paddle/paddle/phi/kernels/funcs/gather_scatter_functor.cu(402): error: identifier "cudaFreeAsync" is undefined
[00:55:13]	          detected during instantiation of "void phi::funcs::gpu_gather_kernel<tensor_t,index_t>(phi::DenseTensor, int, const phi::DenseTensor &, phi::DenseTensor, __nv_bool, const phi::DeviceContext &) [with tensor_t=int, index_t=int]" 
[00:55:13]	(1317): here
[00:55:13]	
[00:55:13]	/home/disk1/teamcity/work/35d35f7d19925f81/Paddle/paddle/phi/kernels/funcs/gather_scatter_functor.cu(406): error: identifier "cudaMallocAsync" is undefined
[00:55:13]	          detected during instantiation of "void phi::funcs::gpu_gather_kernel<tensor_t,index_t>(phi::DenseTensor, int, const phi::DenseTensor &, phi::DenseTensor, __nv_bool, const phi::DeviceContext &) [with tensor_t=int, index_t=int]" 
[00:55:13]	(1317): here
[00:55:13]	
[00:55:13]	/home/disk1/teamcity/work/35d35f7d19925f81/Paddle/paddle/phi/kernels/funcs/gather_scatter_functor.cu(424): error: identifier "cudaFreeAsync" is undefined
[00:55:13]	          detected during instantiation of "void phi::funcs::gpu_gather_kernel<tensor_t,index_t>(phi::DenseTensor, int, const phi::DenseTensor &, phi::DenseTensor, __nv_bool, const phi::DeviceContext &) [with tensor_t=int, index_t=int]" 
[00:55:13]	(1317): here
[00:55:13]	
[00:55:13]	/home/disk1/teamcity/work/35d35f7d19925f81/Paddle/paddle/phi/kernels/funcs/gather_scatter_functor.cu(430): error: identifier "cudaMallocAsync" is undefined
[00:55:13]	          detected during instantiation of "void phi::funcs::gpu_gather_kernel<tensor_t,index_t>(phi::DenseTensor, int, const phi::DenseTensor &, phi::DenseTensor, __nv_bool, const phi::DeviceContext &) [with tensor_t=int, index_t=int]" 
[00:55:13]	(1317): here
[00:55:13]	
[00:55:13]	/home/disk1/teamcity/work/35d35f7d19925f81/Paddle/paddle/phi/kernels/funcs/gather_scatter_functor.cu(450): error: identifier "cudaFreeAsync" is undefined
[00:55:13]	          detected during instantiation of "void phi::funcs::gpu_gather_kernel<tensor_t,index_t>(phi::DenseTensor, int, const phi::DenseTensor &, phi::DenseTensor, __nv_bool, const phi::DeviceContext &) [with tensor_t=int, index_t=int]" 
[00:55:13]	(1317): here
[00:55:13]	
[00:55:14]	/home/disk1/teamcity/work/35d35f7d19925f81/Paddle/paddle/phi/kernels/funcs/gather_scatter_functor.cu(976): error: identifier "cudaMallocAsync" is undefined
[00:55:14]	
[00:55:14]	/home/disk1/teamcity/work/35d35f7d19925f81/Paddle/paddle/phi/kernels/funcs/gather_scatter_functor.cu(992): error: identifier "cudaFreeAsync" is undefined
[00:55:14]	
[00:55:14]	/home/disk1/teamcity/work/35d35f7d19925f81/Paddle/paddle/phi/kernels/funcs/gather_scatter_functor.cu(763): error: identifier "cudaMallocAsync" is undefined
[00:55:14]	
[00:55:14]	/home/disk1/teamcity/work/35d35f7d19925f81/Paddle/paddle/phi/kernels/funcs/gather_scatter_functor.cu(778): error: identifier "cudaFreeAsync" is undefined
[00:55:14]	
[00:55:14]	/home/disk1/teamcity/work/35d35f7d19925f81/Paddle/paddle/phi/kernels/funcs/gather_scatter_functor.cu(782): error: identifier "cudaMallocAsync" is undefined
[00:55:14]	
[00:55:14]	/home/disk1/teamcity/work/35d35f7d19925f81/Paddle/paddle/phi/kernels/funcs/gather_scatter_functor.cu(802): error: identifier "cudaFreeAsync" is undefined
[00:55:14]	
[00:55:14]	/home/disk1/teamcity/work/35d35f7d19925f81/Paddle/paddle/phi/kernels/funcs/gather_scatter_functor.cu(880): error: identifier "cudaMallocAsync" is undefined
[00:55:14]	
[00:55:14]	/home/disk1/teamcity/work/35d35f7d19925f81/Paddle/paddle/phi/kernels/funcs/gather_scatter_functor.cu(893): error: identifier "cudaFreeAsync" is undefined
[00:55:14]	
[00:55:14]	/home/disk1/teamcity/work/35d35f7d19925f81/Paddle/paddle/phi/kernels/funcs/gather_scatter_functor.cu(1115): error: identifier "cudaMallocAsync" is undefined
[00:55:14]	
[00:55:14]	/home/disk1/teamcity/work/35d35f7d19925f81/Paddle/paddle/phi/kernels/funcs/gather_scatter_functor.cu(1132): error: identifier "cudaFreeAsync" is undefined
[00:55:14]	
[00:55:14]	/home/disk1/teamcity/work/35d35f7d19925f81/Paddle/paddle/phi/kernels/funcs/gather_scatter_functor.cu(1293): error: identifier "cudaMallocAsync" is undefined
[00:55:14]	
[00:55:14]	/home/disk1/teamcity/work/35d35f7d19925f81/Paddle/paddle/phi/kernels/funcs/gather_scatter_functor.cu(1313): error: identifier "cudaFreeAsync" is undefined
[00:55:14]	
[00:55:14]	18 errors detected in the compilation of "/home/disk1/teamcity/work/35d35f7d19925f81/Paddle/paddle/phi/kernels/funcs/gather_scatter_functor.cu".
[00:55:14]	make64[2]: *** [paddle/phi/CMakeFiles/phi.dir/kernels/funcs/gather_scatter_functor.cu.o] Error 1
[00:55:14]	make64[2]: *** Waiting for unfinished jobs....

2、复现命令

cmake 命令:

cmake .. '-DCMAKE_CXX_FLAGS=-Wl,--rpath=/opt/compiler/gcc-8.2/lib,--dynamic-linker=/opt/compiler/gcc-8.2/lib/ld-linux-x86-64.so.2 -Wno-error -w' -DON_INFER=ON -DWITH_NCCL=OFF -DWITH_PYTHON=OFF -DPY_VERSION=3.8 -DWITH_RCCL=OFF -DWITH_MKL=ON -DWITH_AVX=OFF -DWITH_MKLDNN=ON -DWITH_GPU=ON -DCMAKE_CUDA_COMPILER=/home/paddle/wangye19/nvidia/cuda-11.1/bin/nvcc -DCUDA_TOOLKIT_ROOT_DIR=/home/paddle/wangye19/nvidia/cuda-11.1 -DCUDNN_ROOT=/home/paddle/wangye19/nvidia/cudnn_v8.2.1/cuda -DWITH_TENSORRT=ON -DTENSORRT_ROOT=/home/paddle/wangye19/nvidia/TensorRT-8.4.0.6 -DWITH_TESTING=OFF -DWITH_INFERENCE_API_TEST=OFF -DWITH_DISTRIBUTE=OFF -DWITH_STRIP=ON -DWITH_CINN=OFF -DWITH_ONNXRUNTIME=OFF -DCUDA_ARCH_NAME=Manual '-DCUDA_ARCH_BIN=75 80 86' -DWITH_XPU=OFF -DWITH_LITE=ON -DLITE_WITH_XPU=ON -DLITE_GIT_TAG=d06a1f36ec564fb618d555b342ca1076623d8b94 -DWITH_BDCENTOS=ON -DWITH_SHARED_IR=OFF -DPYTHON_EXECUTABLE=/home/disk1/python_env/bin/python

@YibinLiu666 @luotao1 @zhwesky2010 请帮忙解答一下,谢谢~

其他补充信息 Additional Supplementary Information

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions