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

fix ci #858

Merged
merged 1 commit into from
Oct 17, 2024
Merged

fix ci #858

merged 1 commit into from
Oct 17, 2024

Conversation

edg-l
Copy link
Member

@edg-l edg-l commented Oct 17, 2024

Checklist

  • Linked to Github Issue
  • Unit tests added
  • Integration tests added.
  • This change requires new documentation.
    • Documentation has been added/updated.

@edg-l edg-l marked this pull request as ready for review October 17, 2024 13:27
@edg-l edg-l changed the title try to fix ci fix ci Oct 17, 2024
@edg-l edg-l added the review-ready A PR that is ready for review label Oct 17, 2024
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.73%. Comparing base (b5769e4) to head (c5c2377).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #858   +/-   ##
=======================================
  Coverage   82.73%   82.73%           
=======================================
  Files         120      120           
  Lines       34937    34937           
=======================================
  Hits        28905    28905           
  Misses       6032     6032           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

Benchmarking results

Benchmark for program factorial_2M

Open benchmarks
Command Mean [s] Min [s] Max [s] Relative
Cairo-vm (Rust, Cairo 1) 10.934 ± 0.341 10.599 11.555 23.27 ± 0.73
cairo-native (embedded AOT) 3.132 ± 0.044 3.096 3.220 6.67 ± 0.09
cairo-native (embedded JIT using LLVM's ORC Engine) 3.157 ± 0.018 3.129 3.184 6.72 ± 0.04
cairo-native (standalone AOT) 0.679 ± 0.001 0.678 0.680 1.44 ± 0.00
cairo-native (standalone AOT with -march=native) 0.470 ± 0.001 0.469 0.471 1.00

Benchmark for program fib_2M

Open benchmarks
Command Mean [s] Min [s] Max [s] Relative
Cairo-vm (Rust, Cairo 1) 11.025 ± 0.397 10.523 11.502 1371.97 ± 50.06
cairo-native (embedded AOT) 2.688 ± 0.031 2.644 2.740 334.49 ± 4.30
cairo-native (embedded JIT using LLVM's ORC Engine) 2.682 ± 0.020 2.656 2.722 333.80 ± 3.14
cairo-native (standalone AOT) 0.009 ± 0.000 0.009 0.010 1.08 ± 0.01
cairo-native (standalone AOT with -march=native) 0.008 ± 0.000 0.008 0.008 1.00

Benchmark for program logistic_map

Open benchmarks
Command Mean [s] Min [s] Max [s] Relative
Cairo-vm (Rust, Cairo 1) 4.303 ± 0.029 4.260 4.343 59.49 ± 0.46
cairo-native (embedded AOT) 2.828 ± 0.023 2.799 2.859 39.10 ± 0.34
cairo-native (embedded JIT using LLVM's ORC Engine) 2.977 ± 0.018 2.953 3.001 41.16 ± 0.29
cairo-native (standalone AOT) 0.112 ± 0.000 0.112 0.113 1.55 ± 0.01
cairo-native (standalone AOT with -march=native) 0.072 ± 0.000 0.072 0.074 1.00

Copy link

Benchmark results Main vs HEAD.

Command Mean [s] Min [s] Max [s] Relative
head factorial_2M.cairo (JIT) 3.377 ± 0.032 3.328 3.433 1.06 ± 0.02
base factorial_2M.cairo (JIT) 3.322 ± 0.036 3.252 3.374 1.04 ± 0.02
head factorial_2M.cairo (AOT) 3.223 ± 0.021 3.187 3.254 1.01 ± 0.02
base factorial_2M.cairo (AOT) 3.195 ± 0.043 3.136 3.261 1.00
Command Mean [s] Min [s] Max [s] Relative
head fib_2M.cairo (JIT) 2.784 ± 0.032 2.738 2.842 1.03 ± 0.02
base fib_2M.cairo (JIT) 2.767 ± 0.040 2.692 2.828 1.02 ± 0.02
head fib_2M.cairo (AOT) 2.703 ± 0.043 2.663 2.787 1.00
base fib_2M.cairo (AOT) 2.715 ± 0.053 2.654 2.831 1.00 ± 0.03
Command Mean [s] Min [s] Max [s] Relative
head logistic_map.cairo (JIT) 3.043 ± 0.038 2.996 3.116 1.05 ± 0.02
base logistic_map.cairo (JIT) 3.035 ± 0.034 2.986 3.099 1.05 ± 0.02
head logistic_map.cairo (AOT) 2.888 ± 0.050 2.822 3.000 1.00
base logistic_map.cairo (AOT) 2.912 ± 0.033 2.854 2.969 1.01 ± 0.02

@edg-l edg-l added this pull request to the merge queue Oct 17, 2024
Merged via the queue into main with commit 9db1175 Oct 17, 2024
15 checks passed
@edg-l edg-l deleted the fix_ubuntu branch October 17, 2024 14:52
edg-l added a commit that referenced this pull request Oct 21, 2024
* Add logs

* Implement Felt252Dict trace dump

* Implement nullabel for trace dump

* Print type id

* Remove print

* add convertion for Sints

* fix mispelled types

* forgot to add feature

* change Sints value to correspond to sierra-emu

* Readd feature

* Add is_infinity field to secp256 point struct (#828)

* add is_infinity to secp point

* clean

* fix

* use same deps as blockifier

* fix

* fix layout

* fix test

* remove some brittle asserts due to random initial data when adding and muling points at infinity

* fix

* remove unused dep

* fixes, missed the value entry/output

* Reset src

* Fix warnings

* Make library public

* Use debug runtime for trace dump

* fix storage's values truncations (#839)

* fix storage's values truncations

* change implementation for i8 i16 i32 i64 too

* format

* Add ptr check to felt dict entry

* Add malloc tracing and fix more memory leaks. (#833)

* Add memory tracing.

* Partial memory fixes.

* Fix arrays.

* Simplify dictionaries. Fix false positive memory leak in dictionary drops.

* Fix zero-sized allocation. Fix warnings. More mem tracing checks.

* Fix mem tracing.

* Fix memory leak in `print` libfunc.

* Fix array slice libfunc.

* Fix starknet memory leaks.

* Fix keccak syscall.

* Fix dict get double free bug.

* Lots of memory fixes.

* More fixes.

* Fix CI.

* Remove old TODOs.

* Fix CI (again).

* Remove TODOs.

* Fix test.

* Maybe fix

* Maybe fix

* Maybe fix

* Dont panic when building circuit partial outputs

* trace dump for Sha256StateHandler

* Builtin costs rework (#837)

* Update to 2.8.4, release docs, alpha

This PR updates cairo to 2.8.4, adds some release docs and updates the
version to alpha.3 to prepare for another release.

* try fix

* cleanup ci, remove panic in link

* rename from jit to from ptr, etc

* crates.io badge

* progress

* progress

* fmt2

* progress

* progress

* fix

* fix bench

* use struct

* Fix felt252 and enum deserialization bugs. (#844)

* Fix felt252 and enum deserialization bugs.

* Fix formatting.

* Also fix the runtime.

* Fix errors.

* try to fix ci

* remove unused deps

---------

Co-authored-by: Edgar Luque <[email protected]>

* Fix trace dump type conv

* fix aot contract executor not passing builtinstats (#849)

* Fix felt252 and enum deserialization bugs.

* Fix formatting.

* Also fix the runtime.

* Fix errors.

* try to fix ci

* remove unused deps

* fix aot contract executor not passing builtinstats

---------

Co-authored-by: Esteve Soler Arderiu <[email protected]>
Co-authored-by: Esteve Soler Arderiu <[email protected]>

* Fix bug (#851)

* Also fix felt bits in starknet syscall wrappers (#853)

* Also fix felt bits in starknet syscall wrappers

* style

* missed

* fix aot contract executor not passing builtinstats (#849)

* Fix felt252 and enum deserialization bugs.

* Fix formatting.

* Also fix the runtime.

* Fix errors.

* try to fix ci

* remove unused deps

* fix aot contract executor not passing builtinstats

---------

Co-authored-by: Esteve Soler Arderiu <[email protected]>
Co-authored-by: Esteve Soler Arderiu <[email protected]>

* Fix bug (#851)

* Also fix felt bits in starknet syscall wrappers (#853)

* Also fix felt bits in starknet syscall wrappers

* style

* missed

* update version to alpha 4 (#854)

* bytes31

* Better function attributes and re-enable >O1 opt (#843)

* Fix felt252 and enum deserialization bugs.

* Fix formatting.

* Also fix the runtime.

* Fix errors.

* try to fix ci

* remove unused deps

* proper function attributes

* add proper function attrs to optimize better, add some passes, run tests with atleast some opts

* dont use remi

* oops

* maybe with opt level 3 now it works

* test

* works

* readd deleted bench

* remove dbg

* Update bench-hyperfine.sh

* fixci

* comment

* Update src/ffi.rs

Co-authored-by: MrAzteca <[email protected]>

---------

Co-authored-by: Esteve Soler Arderiu <[email protected]>
Co-authored-by: Esteve Soler Arderiu <[email protected]>
Co-authored-by: MrAzteca <[email protected]>

* Resolve `CAIRO_NATIVE_RUNTIME_LIBRARY` relative path (#841)

* feat(ffi): resolve runtime relative path using current dir

* chore: remove mentions to old runtime variable

* fix: typo

---------

Co-authored-by: Bohdan Ohorodnii <[email protected]>

* Implement secp

* Fix bytes31

* try to fix ci (#858)

* update implementing libfuncs doc (#856)

* Fix bytes31 bug

* Remove unused dep

---------

Co-authored-by: FrancoGiachetta <[email protected]>
Co-authored-by: Edgar <[email protected]>
Co-authored-by: MrAzteca <[email protected]>
Co-authored-by: Esteve Soler Arderiu <[email protected]>
Co-authored-by: Esteve Soler Arderiu <[email protected]>
Co-authored-by: Rodrigo <[email protected]>
Co-authored-by: Bohdan Ohorodnii <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
review-ready A PR that is ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants