Skip to content

getValidWorkDiv() is not taking dynamic shared memory into account #2621

@psychocoderHPC

Description

@psychocoderHPC

The method getValidWorkDiv() does not take the amount of dynamic shared memory into account.
If the dynamic shared size depends on the starting parameters, it can exceed the maximum amount of shared memory for the device.
The maximum shared memory for the device is available from the device properties.
Even if the device's maximum shared memory is taken into account the amount of static shared memory must be removed because static shared bytes + dynamic shared bytes should not exceed the device shared memory per thread block.

All alpaka versions are affected by this bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions