-
-
Notifications
You must be signed in to change notification settings - Fork 56.5k
DNN: broken compilation of OpenCL kernel dnn/conv_layer_spatial #24734
Copy link
Copy link
Closed
Milestone
Description
Test: Test_ONNX_nets.ViT_B_32/0, where GetParam() = OCV/OCL
https://pullrequest.opencv.org/buildbot/builders/4_x-lin64/builds/100344
OpenCL program build log: dnn/conv_layer_spatial
Status -11: CL_BUILD_PROGRAM_FAILURE
-D TYPE=1 -D Dtype=float -D Dtype2=float2 -D Dtype4=float4 -D Dtype8=float8 -D Dtype16=float16 -D as_Dtype=as_float -D as_Dtype2=as_float2 -D as_Dtype4=as_float4 -D as_Dtype8=as_float8 -D KERNEL_WIDTH=32 -D KERNEL_HEIGHT=32 -D STRIDE_X=32 -D STRIDE_Y=32 -D DILATION_X=1 -D DILATION_Y=1 -D INPUT_PAD_W=0 -D INPUT_PAD_H=0 -D INPUT_PAD_RIGHT=0 -D INPUT_PAD_BOTTOM=0 -cl-fast-relaxed-math -D GEMM_LIKE_CONV_32_1 -D Conv_Interleaved=U_GEMM_LIKE_CONV_k32x32_cn3_g1_s32x32_d1x1_b1_in224x224_p0x0_num1_M768_activ0_eltwise0_FP32_5_1_8_32_SIMD8 -cl-mad-enable -cl-no-subgroup-ifp -D KERNEL_GEMM_LIKE -D INPUT_DEPTH=3 -D WIDTH1=768 -D OUT_PADDING_LEFT=0 -D OUT_PADDING_HEIGHT=0 -D OUT_DEPTH=768 -D NUM_BATCHES=1 -D DY=1 -D DX=32 -D KERNEL_WIDTH_DIV2=16 -D KERNEL_SLICE_DIV2=512 -D TILE_N_LAST=0 -D TILE_N_LAST_DIV8=0 -D APPLY_BIAS=1 -D INTEL_DEVICE
2:356:9: error: unknown type name 'float32'
typedef CAT( Dtype, KERNEL_WIDTH ) Dtype_t;
^
2:49:19: note: expanded from macro 'CAT'
#define CAT(x, y) __CAT(x, y)
^
2:48:21: note: expanded from macro '__CAT'
#define __CAT(x, y) x##y
^
<scratch space>:9:1: note: expanded from here
float32
^
2:406:1: error: implicit declaration of function 'LOOP32' is invalid in OpenCL
LOOP(KERNEL_WIDTH, pos,
^
2:67:28: note: expanded from macro 'LOOP'
#define LOOP(N, VAR, STMT) CAT(LOOP, N)((VAR), (STMT))
^
2:49:19: note: expanded from macro 'CAT'
#define CAT(x, y) __CAT(x, y)
^
2:48:21: note: expanded from macro '__CAT'
#define __CAT(x, y) x##y
^
<scratch space>:10:1: note: expanded from here
LOOP32
^
2:406:1: error: argument type 'void' is incomplete
LOOP(KERNEL_WIDTH, pos,
^~~~~~~~~~~~~~~~~~~~~~~
2:67:48: note: expanded from macro 'LOOP'
#define LOOP(N, VAR, STMT) CAT(LOOP, N)((VAR), (STMT))
^~~~~~
[ WARN:0@244.776] global ocl4dnn_conv_spatial.cpp:1290 compileKernel DNN/OpenCL: Failed to compile kernel: U_GEMM_LIKE_CONV_k32x32_cn3_g1_s32x32_d1x1_b1_in224x224_p0x0_num1_M768_activ0_eltwise0_FP32_5_1_8_32_SIMD8, buildflags: ' -D TYPE=1 -D Dtype=float -D Dtype2=float2 -D Dtype4=float4 -D Dtype8=float8 -D Dtype16=float16 -D as_Dtype=as_float -D as_Dtype2=as_float2 -D as_Dtype4=as_float4 -D as_Dtype8=as_float8 -D KERNEL_WIDTH=32 -D KERNEL_HEIGHT=32 -D STRIDE_X=32 -D STRIDE_Y=32 -D DILATION_X=1 -D DILATION_Y=1 -D INPUT_PAD_W=0 -D INPUT_PAD_H=0 -D INPUT_PAD_RIGHT=0 -D INPUT_PAD_BOTTOM=0 -cl-fast-relaxed-math -D GEMM_LIKE_CONV_32_1 -D Conv_Interleaved=U_GEMM_LIKE_CONV_k32x32_cn3_g1_s32x32_d1x1_b1_in224x224_p0x0_num1_M768_activ0_eltwise0_FP32_5_1_8_32_SIMD8 -cl-mad-enable -cl-no-subgroup-ifp -D KERNEL_GEMM_LIKE -D INPUT_DEPTH=3 -D WIDTH1=768 -D OUT_PADDING_LEFT=0 -D OUT_PADDING_HEIGHT=0 -D OUT_DEPTH=768 -D NUM_BATCHES=1 -D DY=1 -D DX=32 -D KERNEL_WIDTH_DIV2=16 -D KERNEL_SLICE_DIV2=512 -D TILE_N_LAST=0 -D TILE_N_LAST_DIV8=0 -D APPLY_BIAS=1', errmsg: '2:356:9: error: unknown type name 'float32'
typedef CAT( Dtype, KERNEL_WIDTH ) Dtype_t;
^
2:49:19: note: expanded from macro 'CAT'
#define CAT(x, y) __CAT(x, y)
^
2:48:21: note: expanded from macro '__CAT'
#define __CAT(x, y) x##y
^
<scratch space>:9:1: note: expanded from here
float32
^
2:406:1: error: implicit declaration of function 'LOOP32' is invalid in OpenCL
LOOP(KERNEL_WIDTH, pos,
^
2:67:28: note: expanded from macro 'LOOP'
#define LOOP(N, VAR, STMT) CAT(LOOP, N)((VAR), (STMT))
^
2:49:19: note: expanded from macro 'CAT'
#define CAT(x, y) __CAT(x, y)
^
2:48:21: note: expanded from macro '__CAT'
#define __CAT(x, y) x##y
^
<scratch space>:10:1: note: expanded from here
LOOP32
^
2:406:1: error: argument type 'void' is incomplete
LOOP(KERNEL_WIDTH, pos,
^~~~~~~~~~~~~~~~~~~~~~~
2:67:48: note: expanded from macro 'LOOP'
#define LOOP(N, VAR, STMT) CAT(LOOP, N)((VAR), (STMT))
^~~~~~
'
OpenCL program build log: dnn/conv_layer_spatial
Status -11: CL_BUILD_PROGRAM_FAILURE
-D TYPE=1 -D Dtype=float -D Dtype2=float2 -D Dtype4=float4 -D Dtype8=float8 -D Dtype16=float16 -D as_Dtype=as_float -D as_Dtype2=as_float2 -D as_Dtype4=as_float4 -D as_Dtype8=as_float8 -D KERNEL_WIDTH=32 -D KERNEL_HEIGHT=32 -D STRIDE_X=32 -D STRIDE_Y=32 -D DILATION_X=1 -D DILATION_Y=1 -D INPUT_PAD_W=0 -D INPUT_PAD_H=0 -D INPUT_PAD_RIGHT=0 -D INPUT_PAD_BOTTOM=0 -cl-fast-relaxed-math -D GEMM_LIKE_CONV_32_2 -D Conv_Interleaved=U_GEMM_LIKE_CONV_k32x32_cn3_g1_s32x32_d1x1_b1_in224x224_p0x0_num1_M768_activ0_eltwise0_FP32_5_2_8_32_SIMD8 -cl-mad-enable -cl-no-subgroup-ifp -D KERNEL_GEMM_LIKE -D INPUT_DEPTH=3 -D WIDTH1=768 -D OUT_PADDING_LEFT=0 -D OUT_PADDING_HEIGHT=0 -D OUT_DEPTH=768 -D NUM_BATCHES=1 -D DY=2 -D DX=32 -D KERNEL_WIDTH_DIV2=16 -D KERNEL_SLICE_DIV2=512 -D TILE_N_LAST=0 -D TILE_N_LAST_DIV8=0 -D APPLY_BIAS=1 -D INTEL_DEVICE
3:679:9: error: unknown type name 'float32'
typedef CAT( Dtype, KERNEL_WIDTH ) Dtype_t;
^
3:49:19: note: expanded from macro 'CAT'
#define CAT(x, y) __CAT(x, y)
^
3:48:21: note: expanded from macro '__CAT'
#define __CAT(x, y) x##y
^
<scratch space>:9:1: note: expanded from here
float32
^
3:726:1: error: implicit declaration of function 'LOOP32' is invalid in OpenCL
LOOP(KERNEL_WIDTH, pos,
^
3:67:28: note: expanded from macro 'LOOP'
#define LOOP(N, VAR, STMT) CAT(LOOP, N)((VAR), (STMT))
^
3:49:19: note: expanded from macro 'CAT'
#define CAT(x, y) __CAT(x, y)
^
3:48:21: note: expanded from macro '__CAT'
#define __CAT(x, y) x##y
^
<scratch space>:10:1: note: expanded from here
LOOP32
^
3:726:1: error: argument type 'void' is incomplete
LOOP(KERNEL_WIDTH, pos,
^~~~~~~~~~~~~~~~~~~~~~~
3:67:48: note: expanded from macro 'LOOP'
#define LOOP(N, VAR, STMT) CAT(LOOP, N)((VAR), (STMT))
^~~~~~
[ WARN:0@245.040] global ocl4dnn_conv_spatial.cpp:1290 compileKernel DNN/OpenCL: Failed to compile kernel: U_GEMM_LIKE_CONV_k32x32_cn3_g1_s32x32_d1x1_b1_in224x224_p0x0_num1_M768_activ0_eltwise0_FP32_5_2_8_32_SIMD8, buildflags: ' -D TYPE=1 -D Dtype=float -D Dtype2=float2 -D Dtype4=float4 -D Dtype8=float8 -D Dtype16=float16 -D as_Dtype=as_float -D as_Dtype2=as_float2 -D as_Dtype4=as_float4 -D as_Dtype8=as_float8 -D KERNEL_WIDTH=32 -D KERNEL_HEIGHT=32 -D STRIDE_X=32 -D STRIDE_Y=32 -D DILATION_X=1 -D DILATION_Y=1 -D INPUT_PAD_W=0 -D INPUT_PAD_H=0 -D INPUT_PAD_RIGHT=0 -D INPUT_PAD_BOTTOM=0 -cl-fast-relaxed-math -D GEMM_LIKE_CONV_32_2 -D Conv_Interleaved=U_GEMM_LIKE_CONV_k32x32_cn3_g1_s32x32_d1x1_b1_in224x224_p0x0_num1_M768_activ0_eltwise0_FP32_5_2_8_32_SIMD8 -cl-mad-enable -cl-no-subgroup-ifp -D KERNEL_GEMM_LIKE -D INPUT_DEPTH=3 -D WIDTH1=768 -D OUT_PADDING_LEFT=0 -D OUT_PADDING_HEIGHT=0 -D OUT_DEPTH=768 -D NUM_BATCHES=1 -D DY=2 -D DX=32 -D KERNEL_WIDTH_DIV2=16 -D KERNEL_SLICE_DIV2=512 -D TILE_N_LAST=0 -D TILE_N_LAST_DIV8=0 -D APPLY_BIAS=1', errmsg: '3:679:9: error: unknown type name 'float32'
typedef CAT( Dtype, KERNEL_WIDTH ) Dtype_t;
^
3:49:19: note: expanded from macro 'CAT'
#define CAT(x, y) __CAT(x, y)
^
3:48:21: note: expanded from macro '__CAT'
#define __CAT(x, y) x##y
^
<scratch space>:9:1: note: expanded from here
float32
^
3:726:1: error: implicit declaration of function 'LOOP32' is invalid in OpenCL
LOOP(KERNEL_WIDTH, pos,
^
3:67:28: note: expanded from macro 'LOOP'
#define LOOP(N, VAR, STMT) CAT(LOOP, N)((VAR), (STMT))
^
3:49:19: note: expanded from macro 'CAT'
#define CAT(x, y) __CAT(x, y)
^
3:48:21: note: expanded from macro '__CAT'
#define __CAT(x, y) x##y
^
<scratch space>:10:1: note: expanded from here
LOOP32
^
3:726:1: error: argument type 'void' is incomplete
LOOP(KERNEL_WIDTH, pos,
^~~~~~~~~~~~~~~~~~~~~~~
3:67:48: note: expanded from macro 'LOOP'
#define LOOP(N, VAR, STMT) CAT(LOOP, N)((VAR), (STMT))
^~~~~~
'
Reactions are currently unavailable