Skip to content

Sunny.jl: shared memory for temporary values #303

@quantumsteve

Description

@quantumsteve

In Sunny.jl, calculating the magnon dynamic structure factor requires three temporary arrays (corrbufq, Avec_prefq and Avecq). Our CUDA extension currently uses CuDynamicSharedArray for this scratch space.

https://github.com/MAIQMag/Sunny.jl/blob/36687014d55e6f6b07dfbc1b067530832e0c802f/ext/CUDAExt/SpinWaveTheory/DispersionAndIntensities.jl#L45-L92

Instead of duplicating this kernel for every JuliaGPU backend, we're interested in a portable implementation, possibly an extension of JACC.shared?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions