Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Faiss #8483

Closed
wants to merge 9 commits into from
Closed

Added Faiss #8483

wants to merge 9 commits into from

Conversation

stemann
Copy link
Contributor

@stemann stemann commented Apr 15, 2024

No description provided.

Comment on lines 9 to 10
-#ifdef _MSC_VER
+#ifdef _MSC_VER || defined(__MINGW32__)
Copy link
Member

@giordano giordano Apr 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should simply check _WIN32 if the relevant thing is the target, rather than the compiler: https://learn.microsoft.com/en-us/cpp/preprocessor/predefined-macros?view=msvc-170

Building version v1.7.4 to get support for aarch64-linux-gnu - avoids ARM NEON optimization (which uses vld1q_f32_x2 etc.) included in v1.8.0: facebookresearch/faiss#3166
To make posix_memalign etc. available on mingw32.
@stemann
Copy link
Contributor Author

stemann commented Apr 16, 2024

How do we want this?

v1.7.4, without windows, musl and freebsd, builds just fine: 3fe4eb8

Complications:

To-do (future?)

  • CUDA support

@stemann stemann marked this pull request as ready for review April 16, 2024 09:35
@stemann stemann marked this pull request as draft April 16, 2024 09:35
@giordano
Copy link
Member

giordano commented Apr 16, 2024

v1.8.0: Fixes musl and freebsd, but breaks aarch64-linux due to ARM NEON optimization (which uses vld1q_f32_x2 etc.) included in v1.8.0: facebookresearch/faiss#3166

Open an issue? Edit: ah, I guess that may require the neon extension.

@stemann
Copy link
Contributor Author

stemann commented Apr 17, 2024

v1.8.0: Fixes musl and freebsd, but breaks aarch64-linux due to ARM NEON optimization (which uses vld1q_f32_x2 etc.) included in v1.8.0: facebookresearch/faiss#3166

Open an issue? Edit: ah, I guess that may require the neon extension.

I might just have gotten too lazy at first - too lazy to create a patch for the aarch64/neon bits...; it was easier rolling back to v1.7.4 - and skipping musl and freebsd at first - better than not having aarch64-linux support.

@stemann
Copy link
Contributor Author

stemann commented Apr 17, 2024

How do we want this?

...

To-do (future?)

  • CUDA support

As there is already CUDA-support in Faiss.jl (using the Faiss Python API via PythonCall), CUDA-support might be worth giving a go in the first iteration of a Faiss JLL (this PR): zsz00/Faiss.jl#33 (comment)

Cf. https://github.com/zsz00/Faiss.jl/blob/v0.3.5/src/Faiss.jl#L43

@stemann stemann closed this by deleting the head repository Apr 30, 2024
@stemann stemann mentioned this pull request Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants