Hi Noah,

This is likely due to not having proper detection implemented
for Apple. Normally we use hwloc for detecting the mem. Is it
not available for you or does it report the RAM wrongly?

The code is around here if you are interested in investigating and perhaps contributing a fix:

https://github.com/pocl/pocl/blob/master/lib/CL/devices/topology/pocl_topology.c#L121

HTH,
Pekka

On 12.7.2022 20.54, Noah Reddell wrote:
Hi,

    I'm wondering why the POCL memory limits are so small relative to
my machine RAM and other OpenCL implementations.  Can I increase these
device limits?
     I'm running POCL 3.0 from conda-forge on an M1 Pro Mac with 64GB
RAM.   Install and self-reported properties:
pocl                      3.0                  h422b2f1_0    conda-forge

CL_PLATFORM_PROFILE: FULL_PROFILE
CL_PLATFORM_VERSION: OpenCL 3.0 PoCL 3.0-rc2  Apple, Release, RELOC,
LLVM 14.0.4, SLEEF, FP16, POCL_DEBUG
CL_DEVICE_NAME: pthread
CL_DEVICE_TYPE: CPU


POCL Reporting from clGetDeviceInfo:
(app built with -DCL_TARGET_OPENCL_VERSION=120)

CL_DEVICE_GLOBAL_MEM_SIZE: 2,530,467,840 bytes.     (~2 GB)
CL_DEVICE_MAX_MEM_ALLOC_SIZE: 1,073,741,824 bytes.   (~1 GB)

Apple's OpenCL implementation is reporting much more availability
total and per-buffer.
CL_DEVICE_GLOBAL_MEM_SIZE: 51,539,607,552 bytes.  (~51 GB)
CL_DEVICE_MAX_MEM_ALLOC_SIZE: 9,663,676,416 bytes.  (~9 GB)

The observed POCL memory limits are hampering the type of simulations
I am able to run.  I've seen other platforms limit to 4GB allocations
before, but not in a while.

Warm regards,

Noah


_______________________________________________
pocl-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pocl-devel


_______________________________________________
pocl-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pocl-devel

Reply via email to