Skip to content

CliMA/ClimaCartesianIndices.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ClimaCartesianIndices.jl

This package implements a type called FastCartesianIndices, which is a drop-in replacement for CartesianIndices. FastCartesianIndices uses Julia Base's SignedMultiplicativeInverse to avoid integer division when converting linear indexes to cartesian indexes. This is especially useful on the gpu, which can have a nearly 2x performance impact.

See our documentation for more information.

About

A package for defining fast `CartesianIndices` for gpus.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages