Skip to content

GPU performance optimization #398

@sshin23

Description

@sshin23

I observed that broadcast tend to allocate less memory than map!. E.g.,

julia> @time X .= .+(X,X); @time map!(+, X, X, X);
  0.000074 seconds (33 allocations: 608 bytes)
  0.000121 seconds (64 allocations: 2.078 KiB)

Also, we should cache the spmv buffer to reduce the matmul time
https://github.com/JuliaGPU/CUDA.jl/blob/1389800a26078df16cc689ed5138f0691185ce61/lib/cusparse/generic.jl#L181-L189

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions