Posts by spRocket

1) (Message 8846)
Posted 7 Mar 2025 by spRocket
Post:
I'm not sure what the problem was, but yesterday I found all of my Raspberry Pis complaining that they couldn't upload. Attempting to get on the forum got a Connection Refused. When I tried to get on at work, the forums worked for a few minutes, then boom, Connection Refused, just as I was trying to post. I then broke out my phone and tried to get on the forums, and was able to bring up one page before being blocked yet again.

I guess I must have worn out my welcome somehow?
2) (Message 8708)
Posted 25 Dec 2024 by spRocket
Post:
Yes it looks like something is not going well with the server. Last time I received any work was 4 days ago for the one Android phone that's on the "compatible" type list here.


I'm thinking it's an influx of WCG refugees (like me). World Community Grid is down for the count until January 3 due to a massive data center cooling overhaul and no resources to temporarily move it to another cloud.

I wonder if we will see any sort of Christmas bump as well, from people attaching shiny new PCs to the project?

Once WCG is back up, my x86 hosts will be going back, but the Raspberry Pi fleet will stay since WCG hasn't had any work for Pis in a long time.

Merry Christmas!
3) (Message 8687)
Posted 20 Dec 2024 by spRocket
Post:
I'm having a bit of trouble with Fedora 40 on a Ryzen 7 4700U APU. It will happily request GPU tasks, but they immediately error out on starting:

<core_client_version>7.20.2</core_client_version>
<![CDATA[
<message>
process exited with code 2 (0x2, -254)</message>
<stderr_txt>
BOINC client version 7.20.2
BOINC GPU type 'ATI', deviceId=0, slot=6
Application: ../../projects/asteroidsathome.net_boinc/period_search_10218_x86_64-pc-linux-gnu__opencl_101_amd_linux
Version: 102.18.0.0
Platform name: AMD Accelerated Parallel Processing
Platform vendor: Advanced Micro Devices, Inc.
OpenCL device C version: OpenCL C 2.0  | OpenCL 2.0 
OpenCL device Id: 0
OpenCL device name: gfx900 27GB
Device driver version: 3188.4 (HSA1.1,LC)
Multiprocessors: 7
Max Samplers: 5686
Max work item dimensions: 3
Resident blocks per multiprocessor: 5686
Grid dim: 79604 = 2 * 7 * 5686
Block dim: 128
Binary build log for gfx900:
Error: Failed to compile opencl source (from CL or HIP source to LLVM IR).
 (-2)
 Error creating queue: out of host memory(-6)

</stderr_txt>
]]>


Except that I have 64 GB RAM and have explicitly reserved 8 GB for video in the BIOS. Here's what I get from clinfo:

Number of platforms                               1
  Platform Name                                   AMD Accelerated Parallel Processing
  Platform Vendor                                 Advanced Micro Devices, Inc.
  Platform Version                                OpenCL 2.0 AMD-APP (3188.4)
  Platform Profile                                FULL_PROFILE
  Platform Extensions                             cl_khr_icd cl_amd_event_callback 
  Platform Extensions function suffix             AMD

  Platform Name                                   AMD Accelerated Parallel Processing
Number of devices                                 1
  Device Name                                     gfx900
  Device Vendor                                   Advanced Micro Devices, Inc.
  Device Vendor ID                                0x1002
  Device Version                                  OpenCL 2.0 
  Driver Version                                  3188.4 (HSA1.1,LC)
  Device OpenCL C Version                         OpenCL C 2.0 
  Device Type                                     GPU
  Device Board Name (AMD)                         AMD Radeon Graphics
  Device PCI-e ID (AMD)                           0x1636
  Device Topology (AMD)                           PCI-E, 0000:05:00.0
  Device Profile                                  FULL_PROFILE
  Device Available                                Yes
  Compiler Available                              Yes
  Linker Available                                Yes
  Max compute units                               7
  SIMD per compute unit (AMD)                     4
  SIMD width (AMD)                                16
  SIMD instruction width (AMD)                    1
  Max clock frequency                             1600MHz
  Graphics IP (AMD)                               9.0
  Device Partition                                (core)
    Max number of sub-devices                     7
    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
=== CL_PROGRAM_BUILD_LOG ===
Error: AMD HSA Code Object loading failed: HSA_STATUS_ERROR_OUT_OF_RESOURCES: The runtime failed to allocate the necessary resources. This error may also occur when the core runtime library needs to spawn threads or create internal OS-specific events.
  Preferred work group size multiple (kernel)     <getWGsizes:1980: create kernel : error -46>
  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                                     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
    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                              29437693952 (27.42GiB)
  Global free memory (AMD)                        28747748 (27.42GiB) 28747748 (27.42GiB)
  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                           25022039859 (23.3GiB)
  Unified memory for Host and Device              No
  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                       1024 bits (128 bytes)
  Preferred alignment for atomics                 
    SVM                                           0 bytes
    Global                                        0 bytes
    Local                                         0 bytes
  Max size for global variable                    25022039859 (23.3GiB)
  Preferred total size of global vars             29437693952 (27.42GiB)
  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             5686
    Max size for 1D images from buffer            65536 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                8
    Max number of read/write image args           64
  Max number of pipe args                         16
  Max active pipe reservations                    16
  Max pipe packet size                            3547203379 (3.304GiB)
  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                        25022039859 (23.3GiB)
  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)        0ns (Wed Dec 31 18:00:00 1969)
  Execution capabilities                          
    Run OpenCL kernels                            Yes
    Run native kernels                            No
    Thread trace supported (AMD)                  No
    Number of async queues (AMD)                  8
    Max real-time compute queues (AMD)            8
    Max real-time compute units (AMD)             7
  printf() buffer size                            4194304 (4MiB)
  Built-in kernels                                (n/a)
  Device Extensions                               cl_khr_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_amd_device_attribute_query cl_amd_media_ops cl_amd_media_ops2 cl_khr_image2d_from_buffer cl_khr_subgroups cl_khr_depth_images cl_amd_copy_buffer_p2p cl_amd_assembly_program 

NULL platform behavior
  clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...)  AMD Accelerated Parallel Processing
  clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...)   Success [AMD]
  clCreateContext(NULL, ...) [default]            Success [AMD]
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT)  Success (1)
    Platform Name                                 AMD Accelerated Parallel Processing
    Device Name                                   gfx900
  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                                   gfx900
  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                                   gfx900

ICD loader properties
  ICD loader Name                                 OpenCL ICD Loader
  ICD loader Vendor                               OCL Icd free software
  ICD loader Version                              2.3.2
  ICD loader Profile                              OpenCL 3.0


Could this be some sort of permission issue?
4) (Message 8686)
Posted 20 Dec 2024 by spRocket
Post:
Universe@Home wasn't loading any work on the arm64 architecture despite of the compatibility shown on the BOINC project list. And Einstein@Home is using a lot of RAM memory (~200 MiB per task), which is too much to run on 4 cores when using 1GB RAM devices without having catastrophic crashes all the times (Linux kernels having become completely unable to keep running fine when something uses too much RAM... for a bunch of years already. Seems it's never going to be repaired)


The dreaded OOM (out-of-memory) killer, which decides (often wrongly) what to kill when RAM+swap run out. One thing that I found very useful on 1 GB devices is, paradoxically enough, to reserve some of that RAM as compressed swap space (zswap). That worked nicely for having 4x Open Pandemics tasks running on Pi 3s without them stomping on one another. The article below is a good place to start, and I've used the script mentioned in the article to set it up.

https://linuxblog.io/raspberry-pi-performance-add-zram-kernel-parameters/

Meanwhile, I've just joined a small fleet of RPis (3xRPi5, 2xRPI400, 1xRPI4), and it was humming along nicely until the tasks ran out. Looks like this is a general problem, as my x86 crunchers are also rapidly running out of tasks.