Skip to content

ymk00/simd-knn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SIMD KNN

Simple 2D KNN with basic SIMD and X11 UI. One day mini-project.

demo

Notes

I wrote this to runtime check for FMA support, but decided against its use as only MSVC fails to support __FMA__ macro.

bool is_fma_supported() {
    unsigned int eax, ebx, ecx, edx;

    asm volatile(
        "cpuid"
        : "=a"(eax), "=b"(ebx), "=c"(ecx), "=d"(edx)
        : "a"(1), "c"(0)
    );

    return (ecx & (1 << 12)) != 0;
}

About

Simple 2D KNN with basic SIMD and X11 UI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published