Re: Success: HP-Slimline 290-p0014 Desktop using integrated UHD Graphics 630

Jan Beich <[email protected]>
Newsgroups gmane.os.freebsd.devel.x11
Message-ID <[email protected]>
Steven Friedrich <[email protected]> writes:

> Do you have any showcase apps to demonstrate OpenCL?

Look for ports that depend on devel/opencl or devel/ocl-icd e.g.,

  $ fetch https://github.com/nagadomi/waifu2x/raw/master/images/city.jpg

  # cpp version only contains a model for drawn art, so download separately
  $ mkdir /tmp/vgg_7_photo
  $ fetch -o /tmp/vgg_7_photo \
    https://github.com/nagadomi/waifu2x/raw/master/models/vgg_7/photo/noise1_model.json \
    https://github.com/nagadomi/waifu2x/raw/master/models/vgg_7/photo/scale2.0x_model.json

  $ pkg install waifu2x-converter-cpp
  $ sudo waifu2x-converter-cpp --force-OpenCL --model-dir /tmp/vgg_7_photo -i city.jpg -o city2x.cpp.png

vs. 

  $ fetch https://github.com/nagadomi/waifu2x/raw/master/images/city.jpg

  $ pkg install waifu2x-ncnn-vulkan
  $ waifu2x-ncnn-vulkan -m /usr/local/share/waifu2x-ncnn-vulkan/models-upconv_7_photo -i city.jpg -o city2x.vulkan.png

>   Max clock frequency                             0MHz
[...]
>     Clock frequency : 0 MHz

Correct reporting requires FreeBSD >= 13.0, see lang/intel-compute-runtime/files/patch-max_freq

>     Global memory bandwidth (GBPS)
>       float   : 32.58
>       float2  : 32.72
>       float4  : 34.26
>       float8  : 32.95
>       float16 : 30.33

clpeak also exists for oneAPI e.g.,

  $ pkg install git level-zero
  $ git clone https://github.com/oneapi-src/level-zero-tests
  $ cd level-zero-tests/perf_tests/ze_peak
  $ c++ -o ze_peak src/*.cpp -O2 -pipe -isystem/usr/local/include -L/usr/local/lib -lze_loader
  $ (cd kernels; sudo ../ze_peak)
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-x11
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.