how to install and active opencl in freebsd14

dear all , i have used intel 11th Gen Core Processor with TigerLake-LP GT2 [Iris Xe Graphics] in my laptop. i just want to run hashcat . now
i couldn't active OpenCL . i have install below packages.
1. clinfo
2. intel-compute-runtime-llvm14-22.24.23453

.when i run clinfo in shell command . below is output ..
game@dell3520:~/document $ clinfo
Number of platforms 0

ICD loader properties
ICD loader Name OpenCL ICD Loader
ICD loader Vendor OCL Icd free software
ICD loader Version 2.3.1
ICD loader Profile OpenCL 3.0
game@dell3520:~/document $

i don't find opencl devices.

when i running hascat , output in below
game@dell3520:~/document $ hashcat -b
hashcat (v6.2.6) starting in benchmark mode

Benchmarking uses hand-optimized kernel code by default.
You can use it in your cracking session by setting the -O option.
Note: Using optimized kernel code limits the maximum supported password length.
To disable the optimized kernel code in benchmark mode, use the -w option.

clGetPlatformIDs(): CL_PLATFORM_NOT_FOUND_KHR

ATTENTION! No OpenCL, HIP or CUDA compatible platform found.

You are probably missing the OpenCL, CUDA or HIP runtime installation.

* Intel CPUs require this runtime:
"OpenCL Runtime for Intel Core and Intel Xeon Processors" (16.1.1 or later)
* NVIDIA GPUs require this runtime and/or driver (both):
"NVIDIA Driver" (440.64 or later)
"CUDA Toolkit" (9.0 or later)

Started: Fri Mar 15 11:10:57 2024
Stopped: Fri Mar 15 11:10:57 2024
game@dell3520:~/document $

this output looks like hascat can't work .
anyone can help me how to install opencl ? thanks.
 
It's always fun to find someone asking the exact question that you are searching for the answer to...
I did install the intel-compute-runtime package, which installed a bunch of versions - still doesn't seem to work.

I'm trying to get hardware transcoding working in jellyfin, and have gotten to the point where VAAPI is loading and working but the failing OpenCL seems to be stopping hardware transcoding from happening at all.
 
That's the wiki I was following, can't get it to output anything from clinfo
Ffmpeg apparently uses opencl to do the tone mapping from HDR to SDR

I'm pretty sure my particular problem with transcoding is separate from opencl, but getting that working elimates another variable and for watever reason it doesn't want to work - it's an 8th gen i7 with integrated GPU so it should work from what I can tell from the doco
 
Here's some info from my system


Code:
# vainfo
Trying display: wayland
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
Trying display: x11
error: can't connect to X server!
Trying display: drm
libva info: VA-API version 1.21.0
libva info: Trying to open /usr/local/lib/dri/iHD_drv_video.so
libva info: va_openDriver() returns -1
libva info: Trying to open /usr/local/lib/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_21
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.21 (libva 2.21.0)
vainfo: Driver version: Intel i965 driver for Intel(R) Coffee Lake - 2.4.1
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Simple            : VAEntrypointEncSlice
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointEncSlice
      VAProfileH264ConstrainedBaseline: VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSliceLP
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointEncSlice
      VAProfileH264Main               : VAEntrypointEncSliceLP
      VAProfileH264High               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointEncSlice
      VAProfileH264High               : VAEntrypointEncSliceLP
      VAProfileH264MultiviewHigh      : VAEntrypointVLD
      VAProfileH264MultiviewHigh      : VAEntrypointEncSlice
      VAProfileH264StereoHigh         : VAEntrypointVLD
      VAProfileH264StereoHigh         : VAEntrypointEncSlice
      VAProfileVC1Simple              : VAEntrypointVLD
      VAProfileVC1Main                : VAEntrypointVLD
      VAProfileVC1Advanced            : VAEntrypointVLD
      VAProfileNone                   : VAEntrypointVideoProc
      VAProfileJPEGBaseline           : VAEntrypointVLD
      VAProfileJPEGBaseline           : VAEntrypointEncPicture
      VAProfileVP8Version0_3          : VAEntrypointVLD
      VAProfileVP8Version0_3          : VAEntrypointEncSlice
      VAProfileHEVCMain               : VAEntrypointVLD
      VAProfileHEVCMain               : VAEntrypointEncSlice
      VAProfileHEVCMain10             : VAEntrypointVLD
      VAProfileHEVCMain10             : VAEntrypointEncSlice
      VAProfileVP9Profile0            : VAEntrypointVLD
      VAProfileVP9Profile0            : VAEntrypointEncSlice
      VAProfileVP9Profile2            : VAEntrypointVLD

And installed packages
Code:
#  pkg leaf
bastille-0.10.20231125
clinfo-3.0.23.01.25_1
clpeak-1.1.2
drm-kmod-20220907_2
ffmpeg-6.1.1_5,1
git-2.44.0
intel-compute-runtime-llvm13-22.24.23453
jq-1.7.1
libva-intel-driver-2.4.1_2
libva-utils-2.21.0
opencl-3.0.15
opencl-clang-llvm11-11.0.0
opencl-clang-llvm12-12.0.0
opencl-clang-llvm14-14.0.0
pkg-1.20.9_1
py39-azure-cli-2.55.0
samba419-4.19.5_1
sudo-1.9.15p5_4
tmux-3.3a_2
vim-9.1.0015_2
wget-1.21.4_1
zsh-5.9_4


And then clinfo:

Code:
# sudo clinfo
Abort was called at 115 line in file:
/wrkdirs/usr/ports/lang/intel-compute-runtime/work-llvm13/compute-runtime-22.24.23453/shared/source/os_interface/linux/drm_memory_manager.cpp
[1]    87614 abort      sudo clinfo


Kernel modules loaded

Code:
# kldstat
Id Refs Address                Size Name
 1   83 0xffffffff80200000  1d345b0 kernel
 3    1 0xffffffff81f3b000   5d5958 zfs.ko
 4    1 0xffffffff82511000     7718 cryptodev.ko
 5    1 0xffffffff82fe5000     3390 acpi_wmi.ko
 6    1 0xffffffff82fe9000     3250 ichsmb.ko
 7    1 0xffffffff82fed000     2178 smbus.ko
 8    1 0xffffffff82ff0000    31a10 linux.ko
 9    4 0xffffffff83022000     be70 linux_common.ko
10    1 0xffffffff8302e000    2dc30 linux64.ko
11    1 0xffffffff8305c000     2278 pty.ko
12    1 0xffffffff8305f000     3558 fdescfs.ko
13    1 0xffffffff83063000     73c0 linprocfs.ko
14    1 0xffffffff8306b000     440c linsysfs.ko
15    1 0xffffffff83070000    4d038 pf.ko
16    1 0xffffffff830be000     4758 nullfs.ko
17    1 0xffffffff830c3000     2a68 mac_ntpd.ko
18    1 0xffffffff830c6000   1b3920 i915kms.ko
19    2 0xffffffff8327a000    7c050 drm.ko
20    1 0xffffffff832f7000     22b8 iic.ko
21    3 0xffffffff832fa000     3080 linuxkpi_hdmi.ko
22    3 0xffffffff832fe000     6350 dmabuf.ko
23    3 0xffffffff83305000     3378 lindebugfs.ko
24    1 0xffffffff83309000     b360 ttm.ko
 
Back
Top