KhronosGroup / OpenCL-Headers

Khronos OpenCL-Headers
Apache License 2.0
666 stars 236 forks source link

Problem with x264 OpenCL #258

Open Jamaika1 opened 2 months ago

Jamaika1 commented 2 months ago

I use https://github.com/KhronosGroup/OpenCL-Headers/commit/c860bb551eeef9a47d56286a70cea903db3d6ed2 I has info codec x264:


[libx264 @ 000001ad8d0d3b10] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 000001ad8d0d3b10] OpenCL acceleration enabled with NVIDIA Corporation NVIDIA GeForce RTX 3050
[libx264 @ 000001ad8d0d3b10] Compiling OpenCL kernels...
[libx264 @ 000001ad8d0d3b10] profile High, level 4.0, 4:2:0, 8-bit
[libx264 @ 000001ad8d0d3b10] 264 - core 164 r3191M 4613ac3 - H.264/MPEG-4 AVC codec - Copyleft 2003-2022 - http://www.videolan.org/x264.html - 
options: opencl=1 cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=4 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=3000 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00```

When do I use https://github.com/KhronosGroup/OpenCL-Headers/commit/d79beab14769efdff4ff9106cdc47268575d6891 then I have error.

_OpenCL: kernel build errors written to x264_kernel_build_log.txt_

_error   : Binary format for key='0', ident='' is not recognized_