2023-05-30

Slitaz64 - OpenCL - clinfo

 

OpenCL - clinfo

OpenCL™ (Open Computing Language)

darktable-OpenCL

$ darktable-cltest
[opencl_init] device 0: gfx902
CANONICAL_NAME: gfx902
GLOBAL_MEM_SIZE: 1741MB
MAX_WORK_GROUP_SIZE: 256
MAX_WORK_ITEM_DIMENSIONS: 3
MAX_WORK_ITEM_SIZES: [ 1024 1024 1024 ]
DRIVER_VERSION: 3004.6 (PAL,HSAIL)
DEVICE_VERSION: OpenCL 2.0 AMD-APP (3004.6)

LibreOffice-7.5.2 - Java SE / OpenJDK SE / OpenCL

1.

OpenCL™ (Open Computing Language) is an open, royalty-free standard for cross-platform, parallel programming of diverse accelerators found in supercomputers, cloud servers, personal computers, mobile devices and embedded platforms. OpenCL greatly improves the speed and responsiveness of a wide spectrum of applications in numerous market categories including professional creative tools, scientific and medical software, vision processing, and neural network training and inferencing.

https://www.khronos.org/api/opencl

2.
$ clinfo --version
clinfo version 3.0.21.02.21

$ clinfo
Number of platforms                               1
  Platform Name                                   AMD Accelerated Parallel Processing
  Platform Vendor                                 Advanced Micro Devices, Inc.
  Platform Version                                OpenCL 2.1 AMD-APP (3004.6)
  Platform Profile                                FULL_PROFILE
  Platform Extensions                             cl_khr_icd cl_amd_event_callback cl_amd_offline_devices
  Platform Extensions function suffix             AMD
  Platform Host timer resolution                  1ns

  Platform Name                                   AMD Accelerated Parallel Processing
Number of devices                                 1
  Device Name                                     gfx902
  Device Vendor                                   Advanced Micro Devices, Inc.
  Device Vendor ID                                0x1002
  Device Version                                  OpenCL 2.0 AMD-APP (3004.6)
  Driver Version                                  3004.6 (PAL,HSAIL)
  Device OpenCL C Version                         OpenCL C 2.0
  Device Type                                     GPU
  Device Board Name (AMD)                         Unknown AMD GPU
  Device PCI-e ID (AMD)                           0x1638
  Device Topology (AMD)                           PCI-E, 0000:03:00.0
  Device Profile                                  FULL_PROFILE
  Device Available                                Yes
  Compiler Available                              Yes
  Linker Available                                Yes
  Max compute units                               8
  SIMD per compute unit (AMD)                     4
  SIMD width (AMD)                                16
  SIMD instruction width (AMD)                    1
  Max clock frequency                             2000MHz
  Graphics IP (AMD)                               9.2
  Device Partition                                (core)
    Max number of sub-devices                     8
    Supported partition types                     None
    Supported affinity domains                    (n/a)
  Max work item dimensions                        3
  Max work item sizes                             1024x1024x1024
  Max work group size                             256
  Preferred work group size (AMD)                 256
  Max work group size (AMD)                       1024
  Preferred work group size multiple (kernel)     64
  Wavefront width (AMD)                           64
  Preferred / native vector sizes
    char                                                 4 / 4
    short                                                2 / 2
    int                                                  1 / 1
    long                                                 1 / 1
    half                                                 1 / 1        (cl_khr_fp16)
    float                                                1 / 1
    double                                               1 / 1        (cl_khr_fp64)
  Half-precision Floating-point support           (cl_khr_fp16)
    Denormals                                     No
    Infinity and NANs                             No
    Round to nearest                              No
    Round to zero                                 No
    Round to infinity                             No
    IEEE754-2008 fused multiply-add               No
    Support is emulated in software               No
  Single-precision Floating-point support         (core)
    Denormals                                     No
    Infinity and NANs                             Yes
    Round to nearest                              Yes
    Round to zero                                 Yes
    Round to infinity                             Yes
    IEEE754-2008 fused multiply-add               Yes
    Support is emulated in software               No
    Correctly-rounded divide and sqrt operations  Yes
  Double-precision Floating-point support         (cl_khr_fp64)
    Denormals                                     Yes
    Infinity and NANs                             Yes
    Round to nearest                              Yes
    Round to zero                                 Yes
    Round to infinity                             Yes
    IEEE754-2008 fused multiply-add               Yes
    Support is emulated in software               No
  Address bits                                    64, Little-Endian
  Global memory size                              1825361100 (1.7GiB)
  Global free memory (AMD)                        1712851 (1.634GiB) 1712851 (1.634GiB)
  Global memory channels (AMD)                    4
  Global memory banks per channel (AMD)           4
  Global memory bank width (AMD)                  256 bytes
  Error Correction support                        No
  Max memory allocation                           456340275 (435.2MiB)
  Unified memory for Host and Device              Yes
  Shared Virtual Memory (SVM) capabilities        (core)
    Coarse-grained buffer sharing                 Yes
    Fine-grained buffer sharing                   Yes
    Fine-grained system sharing                   No
    Atomics                                       No
  Minimum alignment for any data type             128 bytes
  Alignment of base address                       2048 bits (256 bytes)
  Preferred alignment for atomics
    SVM                                           0 bytes
    Global                                        0 bytes
    Local                                         0 bytes
  Max size for global variable                    410706176 (391.7MiB)
  Preferred total size of global vars             1825361100 (1.7GiB)
  Global Memory cache type                        Read/Write
  Global Memory cache size                        16384 (16KiB)
  Global Memory cache line size                   64 bytes
  Image support                                   Yes
    Max number of samplers per kernel             16
    Max size for 1D images from buffer            134217728 pixels
    Max 1D or 2D image array size                 2048 images
    Base address alignment for 2D image buffers   256 bytes
    Pitch alignment for 2D image buffers          256 pixels
    Max 2D image size                             16384x16384 pixels
    Max 3D image size                             2048x2048x2048 pixels
    Max number of read image args                 128
    Max number of write image args                64
    Max number of read/write image args           64
  Max number of pipe args                         16
  Max active pipe reservations                    16
  Max pipe packet size                            456340275 (435.2MiB)
  Local memory type                               Local
  Local memory size                               65536 (64KiB)
  Local memory size per CU (AMD)                  65536 (64KiB)
  Local memory banks (AMD)                        32
  Max number of constant args                     8
  Max constant buffer size                        456340275 (435.2MiB)
  Preferred constant buffer size (AMD)            16384 (16KiB)
  Max size of kernel argument                     1024
  Queue properties (on host)
    Out-of-order execution                        No
    Profiling                                     Yes
  Queue properties (on device)
    Out-of-order execution                        Yes
    Profiling                                     Yes
    Preferred size                                262144 (256KiB)
    Max size                                      8388608 (8MiB)
  Max queues on device                            1
  Max events on device                            1024
  Prefer user sync for interop                    Yes
  Number of P2P devices (AMD)                     0
  Profiling timer resolution                      1ns
  Profiling timer offset since Epoch (AMD)        1685440639586263470ns (Tue May 30 09:57:19 2023)
  Execution capabilities
    Run OpenCL kernels                            Yes
    Run native kernels                            No
    Thread trace supported (AMD)                  Yes
    Number of async queues (AMD)                  4
    Max real-time compute queues (AMD)            0
    Max real-time compute units (AMD)             0
  printf() buffer size                            4194304 (4MiB)
  Built-in kernels                                (n/a)
  Device Extensions                               cl_khr_fp64 cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_fp16 cl_khr_gl_sharing cl_khr_gl_depth_images cl_amd_device_attribute_query cl_amd_vec3 cl_amd_printf cl_amd_media_ops cl_amd_media_ops2 cl_amd_popcnt cl_khr_image2d_from_buffer cl_khr_subgroups cl_khr_gl_event cl_khr_depth_images cl_khr_mipmap_image cl_khr_mipmap_image_writes cl_amd_copy_buffer_p2p 

NULL platform behavior
  clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...)  No platform
  clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...)   No platform
  clCreateContext(NULL, ...) [default]            No platform
  clCreateContext(NULL, ...) [other]              Success [AMD]
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT)  Success (1)
    Platform Name                                 AMD Accelerated Parallel Processing
    Device Name                                   gfx902
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU)  Success (1)
    Platform Name                                 AMD Accelerated Parallel Processing
    Device Name                                   gfx902
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL)  Success (1)
    Platform Name                                 AMD Accelerated Parallel Processing
    Device Name                                   gfx902

2023-05-24

Slitaz64 - OpenJDK SE 8u362

 

OpenJDK SE 8u362

OpenJDK Runtime Environment (build 1.8.0_362-362-b09)

LibreOffice-7.5.2 - Java SE / OpenJDK SE / OpenCL
OpenJDK Runtime Environment (IcedTea 3.26.0)

$ uname -a
Linux slitaz 5.15.94 #1 SMP PREEMPT Fri Feb 17 18:59:35 CST 2023 x86_64 GNU/Linux

$ tazpkg info openjre

TazPkg information
=================================================
Package : openjre
State : installed package
Version : 8u362_b09 (new version "" available)
Category : misc
Short desc : Java(TM) Platform Standard Edition Runtime Environment.
Maintainer : nobody@slitaz.org
Web site : https://openjdk.org/
Size : 35.4M/113M
=================================================


$ java -version

openjdk version "1.8.0_362-362"
OpenJDK Runtime Environment (build 1.8.0_362-362-b09)
OpenJDK 64-Bit Server VM (build 25.362-b09, mixed mode)


$ jconsole




https://forum.slitaz.org/topic/slitaz-x86_64-asus-m3400qa/page/4#post-51532

Slitaz64 - Java SE 8u361

 

Java SE 8u361

Java(TM) SE Runtime Environment (build 1.8.0_361-b09)

LibreOffice-7.5.2 - Java SE / OpenJDK SE / OpenCL
Oracle Java SE Version 8 Update 361

$ uname -a
Linux slitaz 5.15.94 #1 SMP PREEMPT Fri Feb 17 18:59:35 CST 2023 x86_64 GNU/Linux

$ tazpkg info jre

TazPkg information
=================================================
Package : jre
State : installed package
Version : 1.8.0_361 (new version "" available)
Category : misc
Short desc : Java Platform Standard Edition Runtime Environment
Maintainer : nobody@slitaz.org
Web site : http://www.oracle.com/technetwork/java/javase/overview/index.html
Size : 62.8M/256.2M
=================================================

$ java -version
java version "1.8.0_361"
Java(TM) SE Runtime Environment (build 1.8.0_361-b09)
Java HotSpot(TM) 64-Bit Server VM (build 25.361-b09, mixed mode)

$ jcontrol &
$ ControlPanel

2023-05-22

Slitaz64 - LibreOffice-7.5.2 - Java SE / OpenJDK SE / OpenCL


LibreOffice-7.5.2 - Java SE / OpenJDK SE / OpenCL

Oracle Java SE Version 8 Update 361
OpenJDK Runtime Environment (IcedTea 3.26.0)

$ libreoffice --version
LibreOffice 7.5.2.2 53bb9681a964705cf672590721dbc85eb4d0c3a2

----

Version: 7.5.2.2 (X86_64) / LibreOffice Community
Build ID: 53bb9681a964705cf672590721dbc85eb4d0c3a2
CPU threads: 16; OS: Linux 5.15; UI render: default; VCL: x11
Locale: en-US (en_US.UTF-8); UI: en-US

Calc: threaded 

libreoffice-7.5.2.png

                                              libreoffice-7.5.2.png

libreoffice-opencl.png
                                               
                                              libreoffice-opencl.png

libreoffice-jre.png

                                                libreoffice-jre.png

libreoffice-openjre.png

                                                    libreoffice-openjre.png

https://forum.slitaz.org/topic/slitaz-x86_64-asus-m3400qa/page/4#post-51528

2023-05-20

Slitaz64 - darktable-OpenCL

 

darktable-OpenCL

Virtual lighttable and darkroom for photographers

$ grep -A1 SHORT /var/lib/tazpkg/installed/darktable/receipt
SHORT_DESC="Virtual lighttable and darkroom for photographers"
MAINTAINER="nhc1@gmx.net"

$ darktable --version
this is darktable 3.8.0
copyright (c) 2009-2021 johannes hanika
darktable-dev@lists.darktable.org

compile options:
bit depth is 64 bit
normal build
SSE2 optimized codepath enabled
OpenMP support enabled
OpenCL support enabled
Lua support disabled
Colord support disabled
gPhoto2 support enabled
GraphicsMagick support disabled
ImageMagick support disabled
OpenEXR support enabled

$ darktable-cltest

0.011799 [opencl_init] opencl related configuration options:
0.011810 [opencl_init]
0.011811 [opencl_init] opencl: 0
0.011813 [opencl_init] opencl_scheduling_profile: 'default'
0.011815 [opencl_init] opencl_library: ''
0.011817 [opencl_init] opencl_memory_requirement: 768
0.011819 [opencl_init] opencl_memory_headroom: 400
0.011820 [opencl_init] opencl_device_priority: '*/!0,*/*/*/!0,*'
0.011823 [opencl_init] opencl_mandatory_timeout: 200
0.011824 [opencl_init] opencl_size_roundup: 16
0.011825 [opencl_init] opencl_async_pixelpipe: 0
0.011826 [opencl_init] opencl_synch_cache: active module
0.011827 [opencl_init] opencl_number_event_handles: 25
0.011828 [opencl_init] opencl_micro_nap: 1000
0.011829 [opencl_init] opencl_use_pinned_memory: 0
0.011830 [opencl_init] opencl_use_cpu_devices: 0
0.011831 [opencl_init] opencl_avoid_atomics: 0
0.011834 [opencl_init]
0.011961 [opencl_init] found opencl runtime library 'libOpenCL'
0.011974 [opencl_init] opencl library 'libOpenCL' found on your system and loaded
0.073483 [opencl_init] found 1 platform
0.073503 [opencl_init] found 1 device
0.073526 [opencl_init] device 0 `gfx902' supports image sizes of 16384 x 16384
0.073529 [opencl_init] device 0 `gfx902' allows GPU memory allocations of up to 435MB
[opencl_init] device 0: gfx902
 	CANONICAL_NAME:       	gfx902
 	GLOBAL_MEM_SIZE:      	1741MB
 	MAX_WORK_GROUP_SIZE:  	256
 	MAX_WORK_ITEM_DIMENSIONS: 3
 	MAX_WORK_ITEM_SIZES:  	[ 1024 1024 1024 ]
 	DRIVER_VERSION:       	3004.6 (PAL,HSAIL)
 	DEVICE_VERSION:       	OpenCL 2.0 AMD-APP (3004.6)







https://forum.slitaz.org/topic/slitaz-x86_64-asus-m3400qa/page/4#post-51519


Slitaz64 - qemu

 

qemu

$ qemu --version
QEMU emulator version 6.1.0
Copyright (c) 2003-2021 Fabrice Bellard and the QEMU Project developers


slitaz64 - kernel-huge


kernel-huge

kernel-huge (a fully-loaded SMP Linux kernel)
config-huge-5.15.94.x64
config-generic-5.15.94.x64

kernel-generic-5.15.94-x86_64-1.txz 2023-02-18 02:30 8.1M
kernel-huge-5.15.94-x86_64-1.txt 2023-02-18 02:27 636
kernel-huge-5.15.94-x86_64-1.txz 2023-02-18 02:27 12M

$ cat /proc/version
Linux version 5.15.94 (root@z-mp.slackware.lan) (gcc (GCC) 11.2.0, GNU ld version 2.37-slack15) #1 SMP PREEMPT Fri Feb 17 18:59:35 CST 2023

$ cat kernel-huge-5.15.94-x86_64-1.txt
kernel-huge: kernel-huge (a fully-loaded SMP Linux kernel)
kernel-huge:
kernel-huge: This is a Linux kernel with built-in support for most disk
kernel-huge: controllers. If you're looking for a more stripped down kernel
kernel-huge: (this one contains everything but the kitchen sink ;-), then install
kernel-huge: the kernel-generic in the /boot directory along with an initrd to
kernel-huge: load support for your boot device and filesystem. For instructions
kernel-huge: on the initrd, see README.initrd in the /boot directory.
kernel-huge:
kernel-huge: SMP is "Symmetric multiprocessing", or multiple CPU/core support.
kernel-huge:

$ tar tvf kernel-huge-5.15.94-x86_64-1.txz

drwxr-xr-x root/root         0 2023-02-18 01:26:56 ./
drwxr-xr-x root/root         0 2023-02-18 01:26:56 boot/
-rw-r--r-- root/root   6873737 2023-02-18 01:26:43 boot/System.map-huge-5.15.94
-rw-r--r-- root/root    239621 2023-02-17 21:58:05 boot/config-huge-5.15.94.x64
-rw-r--r-- root/root  11593312 2023-02-18 01:26:55 boot/vmlinuz-huge-5.15.94
drwxr-xr-x root/root         0 2023-02-18 01:26:56 install/
-rw-r--r-- root/root       336 2023-02-18 01:26:56 install/doinst.sh
-rw-r--r-- root/root      1095 2023-02-18 01:26:56 install/slack-desc

$ tar tvf kernel-generic-5.15.94-x86_64-1.txz
drwxr-xr-x root/root         0 2023-02-18 01:30:03 ./
drwxr-xr-x root/root         0 2023-02-18 01:30:03 boot/
-rw-r--r-- root/root   5107025 2023-02-18 01:29:55 boot/System.map-generic-5.15.94
-rw-r--r-- root/root    239652 2023-02-17 21:58:09 boot/config-generic-5.15.94.x64
-rw-r--r-- root/root   7779296 2023-02-18 01:30:02 boot/vmlinuz-generic-5.15.94
drwxr-xr-x root/root         0 2023-02-18 01:30:03 install/
-rw-r--r-- root/root       354 2023-02-18 01:30:03 install/doinst.sh
-rw-r--r-- root/root      1086 2023-02-18 01:30:03 install/slack-desc

 

https://forum.slitaz.org/topic/slitaz-x86_64-asus-m3400qa/page/4#post-51517 

2023-05-11

Slitaz64 - gztazmod.sh

 

gztazmod.sh: Compress Linux kernel modules for SliTaz GNU/Linux.

kernel Linux 5.13.7-xanmod1 - CPU-X
XanMod Kernel
XanMod is a general-purpose Linux kernel distribution with custom settings and new features.
https://xanmod.org/

https://forum.slitaz.org/topic/slitaz-x86_64-asus-m3400qa#post-50214

$ modinfo ntfs3
filename: /lib/modules/5.15.94/kernel/fs/ntfs3/ntfs3.ko.xz
[..]
name: ntfs3
vermagic: 5.15.94 SMP preempt mod_unload

1.
linux/stuff/gztazmod.sh

#!/bin/sh
# gztazmod.sh: Compress Linux kernel modules for SliTaz GNU/Linux.
# 2007-2014 <pankso@slitaz.org> - GNU General Public License.
#
. /lib/libtaz.sh

# We do our work in the kernel version modules directory.
if [ -z "$1" ] ; then
newline
echo "Usage: $(basename $0) path/to/kernel-version"
newline && exit 1
fi

https://cook.slitaz.org/index.cgi?stuff=linux/stuff/gztazmod.sh

2.
kernel-modules-5.15.94-x86_64-1.txz 2023-02-18 02:51 49M

kernel-generic-5.15.94-x86_64-1.txz 2023-02-18 02:30 8.1M
kernel-headers-5.15.94-x86-1.txz 2023-02-18 02:52 1.0M
kernel-huge-5.15.94-x86_64-1.txt 2023-02-18 02:27 636
kernel-huge-5.15.94-x86_64-1.txz 2023-02-18 02:27 12M
kernel-source-5.15.94-noarch-1.txz 2023-02-18 02:22 118M

http://slackware.nl/slackware/slackware64-15.0/patches/packages/linux-5.15.94

3.
# du -sh /lib/modules/5.15.94
308.8M /lib/modules/5.15.94

# ls /lib/modules/5.15.94/kernel/fs/ntfs3
ntfs3.ko

4.
# gztazmod.sh /lib/modules/5.15.94

Starting gztazmod.sh to build compressed kernel modules...

Searching all modules to compress them... [ Done ]
Building tmp.dep... [ Done ]
Destroying modules.dep... [ Done ]
Removing tmp.dep to modules.dep... [ Done ]

Kernel modules 5.15.94 are ready.

5.
# du -sh /lib/modules/5.15.94
71.8M /lib/modules/5.15.94

# ls /lib/modules/5.15.94/kernel/fs/ntfs3
ntfs3.ko.xz

# modinfo /lib/modules/5.15.94/kernel/fs/ntfs3/ntfs3.ko.xz
filename: /lib/modules/5.15.94/kernel/fs/ntfs3/ntfs3.ko.xz
alias: fs-ntfs3
author: Konstantin Komarov
compression: Read-only lzx/xpress compression included
behaviour: Enabled Linux POSIX ACLs support
description: ntfs3 read/write filesystem
license: GPL
depends:
retpoline: Y
intree: Y
name: ntfs3
vermagic: 5.15.94 SMP preempt mod_unload

# cat /lib/modules/5.15.94/modules.builtin | wc -l
338

# cat /lib/modules/5.15.94/modules.dep | wc -l
4659


 

2023-05-05

Slitaz64 - Longterm release kernels

 

Longterm release kernels

Linux slitaz 5.15.94 #1 SMP PREEMPT Fri Feb 17 18:59:35 CST 2023 x86_64 GNU/Linux

Longterm release kernels

Version           	Maintainer        	Released         Projected EOL
5.15 			Greg Kroah-Hartman 	2021-10-31 	Oct, 2026
			& Sasha Levin

https://www.kernel.org/category/releases.html


 

https://forum.slitaz.org/topic/slitaz-x86_64-asus-m3400qa/page/3#post-51497