Skip to content

CpuMath Enhancement: Accelerate loops in hardware intrinsics implementation #831

Closed
@briancylui

Description

@briancylui

Style changes needed to solve part of #823

Details

  • Make while loops more efficient in src\Microsoft.ML.CpuMath\SseIntrinsics.cs and src\Microsoft.ML.CpuMath\AvxIntrinsics.cs with modified bound checking:
var remainder = count % elementsPerIteration;
float* pEnd = pdst + (count - remainder);
while (pDstCurrent < pEnd)
{ … }

Metadata

Metadata

Assignees

No one assigned

    Labels

    up-for-grabsA good issue to fix if you are trying to contribute to the project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions