intel / libxcam

libXCam is a project for extended camera(not limited in camera) features and focus on image quality improvement and video analysis. There are lots features supported in image pre-processing, image post-processing and smart analysis. This library makes GPU/CPU/ISP working together to improve image quality. OpenCL is used to improve performance in different platforms.
Other
585 stars 228 forks source link

build kernel from binary failed #757

Open BrantKndy opened 3 years ago

BrantKndy commented 3 years ago

Hello,I'm trying to run command:

./test-video-stabilization --input indoor.yuv --output indoor_out.yuv --gyro gyro_data.csv --save true

based on the example data you provided https://github.com/zongwave/IPASS/tree/master/VideoStab/data/indoor getting message:

Description----------- input video file:./tests/indoor.yuv gyro pose file:./tests/gyro_data.csv output file PREFIX:./tests/indoor_out.yuv input width:1920 input height:1080 need save file:true loop count: 1 /---------------------- XCAM WARNING cl_context.cpp:350: cl create program failed with 839920224 XCAM WARNING cl_kernel.cpp:305: cl kernel(kernel_image_warp_8_pixel) load from binary failed XCAM ERROR cl_kernel.cpp:178: build kernel(kernel_image_warp_8_pixel#245934494e694026# -DWARP_Y=1 ) from binary failed XCAM ERROR cl_video_stabilizer.cpp:309: build video stab kernel failed lt-test-video-stabilization: cl_video_stabilizer.cpp:325: XCam::SmartPtr XCam::create_cl_video_stab_handler(const XCam::SmartPtr&): Assertion `stab_kernel.ptr ()' failed.

May I know what's wrong and how can I fix it?

zongwave commented 2 years ago

did you install opencl driver correctly? what OS are you using? can you install "clinfo" and try if opencl work correctly on your platform?