CliMA / CliMA/ClimaCore.jl

Specialize on `copyto!(::Field, ::typeof(broadcasted(identity, ::Field)))`

Open
#1,887 1 comment 0 reactions 1 assignee Claimed by @charleskawczynski View on GitHub
enhancement performance
Dominant language
Julia
Stars
117
Forks
19
Avg merge
3d 4h
Merged PRs (30d)
41

Description

We can easily specialize on `@. x = y` where `typeof(x) == typeof(y)` to dispatch into the `copyto!(::Field, ::Field)` method, which is ~2x faster. There aren't many cases where we do this, but `Base` and `CUDA` do this-- it's still probably worth it.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.