Skip to content

GPU option for shadows #2

@songololo

Description

@songololo

Adds GPU implementation of shadows (from Rust) which gives a roughly 30+ speedup for the test dataset.

Also speeds up calling functions e.g. SVF and SOLWEIG though not as dramatically.

shadowingfunction_wallheight_23: min=0.815s, max=0.834s, avg=0.825s

--- Testing with GPU disabled (CPU only) ---

shadowing.calculate_shadows_wall_ht_25 (CPU): min=0.084s, max=0.086s, avg=0.084s

--- Python vs Rust comparison ---

Relative speed: 9.76 times faster for given data.

--- Testing with GPU enabled ---

shadowing.calculate_shadows_wall_ht_25 (GPU): min=0.020s, max=0.039s, avg=0.026s

--- Python vs Rust + GPUcomparison ---

Relative speed: 31.19 times faster for given data.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions