Skip to content

Commit

Permalink
add simsimd (#3409)
Browse files Browse the repository at this point in the history
* add simsimd

* fix: add set_kind

* fix: headonly -> dep cmake

* Revert "fix: headonly -> dep cmake"

This reverts commit ca6b7be.

* fix: on_test

* Update xmake.lua

* Update xmake.lua

* Update xmake.lua

* Update xmake.lua

* Update xmake.lua

* Update xmake.lua

* Update xmake.lua

* Update xmake.lua

* Update xmake.lua

---------

Co-authored-by: star9029 <[email protected]>
Co-authored-by: ruki <[email protected]>
  • Loading branch information
3 people authored Mar 17, 2024
1 parent 4c5a714 commit 99e29b9
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions packages/s/simsimd/xmake.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package("simsimd")
set_kind("library", {headeronly = true})
set_homepage("https://ashvardanian.com/posts/simsimd-faster-scipy/")
set_description("Vector Similarity Functions 3x-200x Faster than SciPy and NumPy")
set_license("Apache-2.0")

add_urls("https://github.com/ashvardanian/SimSIMD/archive/refs/tags/$(version).tar.gz",
"https://github.com/ashvardanian/SimSIMD.git")

add_versions("v3.9.0", "8e79b628ba89beebc7c4c853323db0e10ebb6f85bcda2641e1ebaf77cfbda7f9")

on_install(function (package)
os.cp("include", package:installdir())
if not package:has_ctypes("_Float16") then
package:add("defines", "SIMSIMD_NATIVE_F16=0")
end
end)

on_test(function (package)
assert(package:has_cincludes("simsimd/simsimd.h"))
end)

0 comments on commit 99e29b9

Please sign in to comment.