Bug 94525

Summary: OpenCL memory allocation is limited to 1GB
Product: Mesa Reporter: Benjamin Bellec <b.bellec>
Component: Drivers/Gallium/radeonsiAssignee: Default DRI bug account <dri-devel>
Status: RESOLVED FIXED QA Contact: Default DRI bug account <dri-devel>
Severity: normal    
Priority: medium CC: b.bellec
Version: git   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Bug Depends on:    
Bug Blocks: 99553    

Description Benjamin Bellec 2016-03-13 20:29:36 UTC
I wanted to try "ethminer" (the OpenCL Ethereum miner) on Mesa.
I installed Ubuntu 15.10 (x86-64), the "ethminer" client, and the Oibaf PPA Mesa packages.

The OpenCL's Mesa detects only 1GB on my Radeon R9 390 8GB.
So I can't even start "ethminer" since it currently requires 1.4 GB.

Moreover, the two others R9 Nano plugged in the computer are not even detected by "ethminer" nor "clinfo".
Comment 1 Vedran Miletić 2017-03-22 15:54:55 UTC
Should have been fixed by:

commit 8a4ace4a47a07323997da5c2dbc865a32df52451
Author: Marek Olšák <marek.olsak@amd.com>
Date:   Fri Jul 1 00:17:36 2016 +0200

    gallium/radeon: add and use radeon_info::max_alloc_size (v2)
    
    v2: - squashed the patches
        - use INT_MAX
        - clamp max_const_buffer_size
        - check the DRM version in radeon
    
    Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
    Reviewed-by: Vedran Miletić <vedran@miletic.net>

If it's still an issue, please reopen.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.