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

Merge 3.2 to edge #738

Merged
merged 475 commits into from
Oct 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
475 commits
Select commit Hold shift + click to select a range
9d00bed
mesa: wip tranceiver stuff
pkova Jul 9, 2024
a7d8cca
mesa: more route switching cleanup
belisarius222 Jul 9, 2024
2c4f585
mesa: more incremental routing cleanup; still needs next hop in pages
belisarius222 Jul 9, 2024
852a1fb
mesa: WIP refactoring, separating PIT and cache; compiles but not sane
belisarius222 Jul 9, 2024
695d368
http: consolidate slicing & content-range logic
midden-fabler Jul 9, 2024
d7af826
mesa: working jumbo frames
pkova Jul 10, 2024
85ae9b3
Double boot protection (#657)
pkova Jul 10, 2024
402593d
mesa: actually compiles, still not sane
belisarius222 Jul 10, 2024
214481a
untested merge of yu/mesa with jumbo frames
belisarius222 Jul 10, 2024
fd6297a
mesa: compiles again, but merge still needs work
belisarius222 Jul 10, 2024
33fef3a
lss: fix proof handling in non-inline case
lukechampine Jul 8, 2024
2799bdb
lss: return ready pairs from transceive
lukechampine Jul 8, 2024
b316ac9
lss: document API
lukechampine Jul 8, 2024
afd4fec
mesa: use fixed-size queue for mis_u
lukechampine Jul 10, 2024
699e6bf
Merge develop to next/kelvin/410 (#673)
pkova Jul 11, 2024
11439eb
mass: return memory report to arvo
tinnus-napbus May 31, 2024
a6a4d09
http: cleanup ranges, content range header
midden-fabler Jul 11, 2024
485f75c
http: cleanup slice_mime
midden-fabler Jul 11, 2024
3698ec7
http: slice_mime lth not lte
midden-fabler Jul 11, 2024
a3087a4
Merge branch 'develop' into yu/mesa
pkova Jul 12, 2024
13762b8
Merge branch 'develop' into yu/mesa
pkova Jul 12, 2024
1af9661
Merge branch 'yu/mesa' into mesa-switch
pkova Jul 12, 2024
5f92f25
http: fix headers: working
midden-fabler Jul 12, 2024
7eb6cba
mesa: WIP redesigning PIT
belisarius222 Jul 12, 2024
84e00f7
mesa: merge unfinished PIT refactoring
belisarius222 Jul 12, 2024
717bae5
mass: `quac` cleanup
matthew-levan Jul 12, 2024
89b7f30
http: cleanup wip
midden-fabler Jul 12, 2024
c192a7f
mass: improvements (#677)
tinnus-napbus Jul 15, 2024
627fc6c
mesa: handle inline proofs in _mesa_send_jumbo_pieces
lukechampine Jul 15, 2024
dd547c7
mesa: register our interest in _mesa_request_next_fragments
lukechampine Jul 15, 2024
fcec150
mesa: fix jumbo scrying, with a workaround
lukechampine Jul 15, 2024
70d5842
mesa: remove erroneous PIT addition in _mesa_hear_poke
lukechampine Jul 15, 2024
1dc91ef
mesa: preserve sig/hmac when transceiving
lukechampine Jul 15, 2024
75d2e49
mesa: use correct buffer in _mesa_send_jumbo_pieces
lukechampine Jul 15, 2024
2cfd7a0
mesa: don't set %init for messages w/out inlined proofs
lukechampine Jul 15, 2024
df9139e
mesa: use correct buffer length in _mesa_send_jumbo_pieces
lukechampine Jul 15, 2024
448715a
mesa: don't clobber jumbo payload with proof data
lukechampine Jul 15, 2024
bed1f55
mesa: eliminate buffer copy in _mesa_req_pact_done
lukechampine Jul 15, 2024
5b3c230
mesa: put more prints behind #ifdef MESA_DEBUG
belisarius222 Jul 15, 2024
e0a961a
http: cleanup, headers
midden-fabler Jul 16, 2024
1068782
mass: cleanup per matthew-levan feedback
tinnus-napbus Jul 16, 2024
b68c670
mass: include loom size in report
tinnus-napbus Jul 16, 2024
06c6d97
mesa: adding a next hop compiles, runs, doesn't handle indirect yet
belisarius222 Jul 16, 2024
8d567d4
http: additional range spec compliance
midden-fabler Jul 16, 2024
7988ca9
http: cleanup slice_mime
midden-fabler Jul 18, 2024
7bf5043
http: auth & cache
midden-fabler Jul 18, 2024
77bdfbc
http: better slice_mime
midden-fabler Jul 19, 2024
1321e3f
http: move heavier branches down
midden-fabler Jul 19, 2024
aba8da4
jets: switch ed25519 jets to use octs
lukechampine Jul 19, 2024
1bebd6e
add u3_ship library; use in meas
belisarius222 Jul 19, 2024
d616041
noun: actually add the ship library files, jeez
belisarius222 Jul 19, 2024
5ab79d0
gitignore MODULE.bazel and lock
belisarius222 Jul 19, 2024
8a4f086
mesa: inject %dear on page success in the single-fragment case
belisarius222 Jul 19, 2024
b11be88
mesa: inject %dear on successful LSS packet processing
belisarius222 Jul 19, 2024
1054a98
mesa: add lane to pit when forwarding requests
belisarius222 Jul 22, 2024
8b6a86b
http: cleanup, notes from review
midden-fabler Jul 22, 2024
529f399
Post with i754 mote.
sigilante Jul 22, 2024
3fe1a0c
mesa: fix memory and refcounting errors
yosoyubik Jul 23, 2024
8a15c7f
mesa: remove lane from %heer
yosoyubik Jul 23, 2024
d9c4393
mesa: fix loobean check
yosoyubik Jul 23, 2024
fa8a827
mesa: implement _mesa_poke_news_cb
yosoyubik Jul 23, 2024
2218102
http: create function for beam logic (WIP)
midden-fabler Jul 23, 2024
864289f
mesa: verify packet auth via scry
lukechampine Jul 23, 2024
b80e99a
WIP jet hint call stack correct
sigilante Jul 23, 2024
439fdf3
WIP debugging u3_none path
sigilante Jul 23, 2024
470ebe9
http: add _get_range, slice in _http_scry_cb (WIP)
midden-fabler Jul 24, 2024
93ae4cc
mesa: make all macro parameters explicit
lukechampine Jul 24, 2024
19fba9c
mesa: remove duplicate u3_assert macro
lukechampine Jul 24, 2024
ecbaac3
bazel: change openssl mirror to github since openssl.org is down
pkova Jul 24, 2024
24c23c1
bazel: change mirror for libnatpmp because it's always down
pkova Jul 22, 2024
20f30fc
http: add _http_range_respond
midden-fabler Jul 24, 2024
fbc504d
mesa: new lane management
belisarius222 Jul 24, 2024
5007af4
mesa: serialize next hops in hed_u->nex_y
yosoyubik Jul 25, 2024
51f664b
mesa: fix wrong size in _get_her
yosoyubik Jul 25, 2024
9b068d8
mesa: get PIT entry when producing %page
yosoyubik Jul 25, 2024
253db2d
mesa: reorder some definitions
lukechampine Jul 25, 2024
1a2d659
http: put auth in cache key, cleanup
midden-fabler Jul 25, 2024
cc17434
mesa: for pokes, get ship from ack path
yosoyubik Jul 26, 2024
f268f47
mesa: fix memory error
yosoyubik Jul 26, 2024
be993b8
mesa: add comment about indirect lane lifecycle
yosoyubik Jul 26, 2024
305e736
mesa: meet peer on nail
yosoyubik Jul 26, 2024
a64e29c
mesa: fix crash when exiting binary
yosoyubik Jul 26, 2024
5d7651e
mesa: fix memory leak
yosoyubik Jul 26, 2024
ab03d62
Turn off Nock verification.
sigilante Jul 26, 2024
c7bb5ec
mesa: retry outgoing requests on a timer
belisarius222 Jul 26, 2024
a3e7b42
Post working jets.
sigilante Jul 27, 2024
1d87928
mesa: fix crash in request retry
belisarius222 Jul 29, 2024
23033f8
mesa: fix memory bug
yosoyubik Jul 29, 2024
b00825e
u3: corrects recursive deletion in _ch_node_del(), refactors
joemfb Jul 29, 2024
2a06845
add lldbinit.txt
belisarius222 Jul 29, 2024
cbd8898
mesa: fixed crashes during basic operation
belisarius222 Jul 30, 2024
6fce2a4
mesa: stop retrying packet after it gets acked
belisarius222 Jul 30, 2024
874a884
mesa: fix uninitialized peer on %nail
yosoyubik Jul 30, 2024
ea50c2b
Merge develop to next/kelvin/410 (#687)
pkova Jul 30, 2024
3e081bd
pier: fix double boot protection on fresh boot
ripperi Jul 30, 2024
a3363ea
pier: tweak double-boot protection messages
ripperi Jul 30, 2024
6a8439b
mesa: fix memory bug
yosoyubik Jul 30, 2024
59082ba
double-boot protection: bug fix & more informative error messages (#689)
pkova Jul 30, 2024
0c3ed2a
http: slice in arvo, simplify
midden-fabler Jul 30, 2024
f7bf653
mesa: WIP writing new cache line data structure; also added functions…
belisarius222 Jul 30, 2024
64ecf0c
dill: send %born event on start
tinnus-napbus Jul 31, 2024
13e08db
Post corrected traversal order.
sigilante Jul 31, 2024
e235139
main: add --jumbo-bloq command-line argument to set the jumbo frame b…
belisarius222 Jul 31, 2024
0ac53bd
http: scry & cache chunks, cleanup
midden-fabler Aug 1, 2024
b07bf08
dill: revise born event logic
tinnus-napbus Aug 1, 2024
b68619c
mesa: fix refcounting error in _mesa_get_pit
yosoyubik Aug 1, 2024
9e72c92
ames: free jumbo_y
yosoyubik Aug 1, 2024
2c4519e
mesa: allocate lss_builder on the heap
yosoyubik Aug 1, 2024
c69e12a
mesa: fix deletion of PIT entries on hear_page
yosoyubik Aug 1, 2024
95b2e28
http: weak spur, refs, cleanup
midden-fabler Aug 1, 2024
2fd7030
mesa: new cache line; compiles, untested
belisarius222 Aug 1, 2024
98bcfaa
hashtable: add u3h_put_get()
belisarius222 Aug 1, 2024
f152ec5
hashtable: add u3h_trim_with(), fix u3z(null) in u3h_put()
belisarius222 Aug 1, 2024
7098cbe
hashtable: @joemfb review suggestion
belisarius222 Aug 1, 2024
e481d04
mesa: use u3h_put_get() for jumbo frame cache
belisarius222 Aug 1, 2024
840760d
Post second review tweaks.
sigilante Aug 1, 2024
c4030eb
mesa: reorder call to _mesa_del_request
yosoyubik Aug 2, 2024
4594a38
mesa: always release refcount to lan in _realise_lane
yosoyubik Aug 2, 2024
0496ffb
Merge branch 'yu/mesa' into yu/mesa-merge-pairs
yosoyubik Aug 2, 2024
5cea76a
stun: fix incorrect buffer length
yosoyubik Aug 2, 2024
354852b
http: weaker spur, chunk edge case, cleanup
midden-fabler Aug 2, 2024
9b984a0
stun: add success response header
yosoyubik Aug 5, 2024
e789824
ames. mesa: support STUN
yosoyubik Aug 5, 2024
f55fbf8
mesa: free jumbo_pact_y cursor
yosoyubik Aug 5, 2024
633b5a2
mesa: don't send to ourselves in indirect mode
yosoyubik Aug 5, 2024
516feac
Merge branch 'yu/mesa' into yu/mesa-merge-pairs
yosoyubik Aug 5, 2024
9bc164a
Merge remote-tracking branch 'origin/ripa/stacktrace' into mesa-pairs
belisarius222 Aug 5, 2024
9ab726c
mesa: fix build
yosoyubik Aug 5, 2024
a0fd921
http: fix possible bail foul
midden-fabler Aug 5, 2024
f13c5c4
pact.c: propagate packet parse failures
belisarius222 Aug 5, 2024
403d67f
pact: remove cruft
belisarius222 Aug 5, 2024
9ffeec8
mesa: fix crash in _mesa_page_scry_jumbo_cb()
belisarius222 Aug 5, 2024
47c6be8
mesa: use total message bytes in message format; compiles
belisarius222 Aug 5, 2024
17c5ccf
mesa: 64-bit fragment number
belisarius222 Aug 5, 2024
602ffdc
Merge branch 'mesa-pairs' into yu/mesa-merge-pairs
yosoyubik Aug 6, 2024
da63bc9
mesa: fix merge conflicts
yosoyubik Aug 6, 2024
512e614
mesa: fix missing met_u.bot_y initialization
yosoyubik Aug 6, 2024
bee8af3
http: fix bail meme
midden-fabler Aug 6, 2024
5c83b9b
jets: update for urcrypt blake3 changes
lukechampine Aug 5, 2024
269a101
mesa: outline WIP
lukechampine Aug 6, 2024
1640177
mesa: only send one response fragment on cache hit
belisarius222 Aug 6, 2024
8287c68
mesa: fix fragment-num encoding bug
belisarius222 Aug 6, 2024
88f92ee
http: check ship for scry at now
midden-fabler Aug 7, 2024
650f8d9
mesa: WIP debugging packet parsing after protocol change
belisarius222 Aug 9, 2024
174ee94
mesa: account for cookie length in mesa_sift_pact
yosoyubik Aug 9, 2024
cdcf5c7
mesa: WIP bugfixes
yosoyubik Aug 9, 2024
84c4c64
mesa: distinguish between total bytes and total fragments
lukechampine Aug 9, 2024
bfc69c7
mesa: add packet serialization roundtrip checks
belisarius222 Aug 9, 2024
cbd91cd
mesa: restore nit_o field
lukechampine Aug 9, 2024
e4cc13d
mesa: fix serialization roundtripping, -hi goes through again
belisarius222 Aug 10, 2024
547e533
mesa: cleanup, remove failing assertion that we sifted the same bytes…
belisarius222 Aug 10, 2024
04ef40f
mesa: hmacs are 128 bits!
lukechampine Aug 10, 2024
1ca6db8
Merge branch 'develop' into tinnus-mass
pkova Aug 12, 2024
ef3a965
mesa: reorder request updates after early returns
yosoyubik Aug 12, 2024
4fad3e5
mesa: add assertion
yosoyubik Aug 12, 2024
f06315b
mesa: don't account for fragments in init packet size
yosoyubik Aug 12, 2024
eae994f
mesa: use actual length of the etched pact in _mesa_check_sift
yosoyubik Aug 12, 2024
dc9d4f2
mesa: refactor etching/sifting
lukechampine Aug 12, 2024
17ae179
mesa: add _etch_bits and _sift_bits
lukechampine Aug 13, 2024
2c33ef6
Merge develop to next/kelvin/410 (#707)
pkova Aug 13, 2024
181e701
mesa: swap aut/auv order
lukechampine Aug 13, 2024
3d462d3
Add corrected range jets.
sigilante Aug 13, 2024
d1291e6
manage: u3m_mark takes no arguments
pkova Aug 14, 2024
cccfcd2
allocate: mark the trace stack in u3a_mark_road
pkova Aug 14, 2024
2d1d5ee
mesa: WIP trying to fix jumbo frames; still crashes in Ames on valida…
belisarius222 Aug 14, 2024
db15130
mass: return memory report to arvo (#675)
pkova Aug 15, 2024
23b4ebf
mesa: wip
yosoyubik Aug 14, 2024
8a05de1
mesa: remove unnecessary conditional
pkova Aug 14, 2024
253bed8
mesa: send responses for init/non-init requests
yosoyubik Aug 15, 2024
fa68bf3
mesa: fix poonter math
yosoyubik Aug 15, 2024
279540e
mesa: wip
lukechampine Aug 15, 2024
6ececcc
mesa: bugfixes
yosoyubik Aug 16, 2024
fea4b85
mesa: cleanup
lukechampine Aug 16, 2024
8fe8e87
mesa: always overwrite full bytes when etching
lukechampine Aug 16, 2024
37d721e
mesa: zero-initialize local structs when etching/sifting
lukechampine Aug 16, 2024
32304e5
Merge develop to next/kelvin/410 (#713)
pkova Aug 19, 2024
8478f5c
mesa: account for null lss pairs
yosoyubik Aug 20, 2024
5b57c96
mesa: correct 2-bit tag for 3-byte fragments
yosoyubik Aug 21, 2024
97ec30f
mesa: don't delete from pit after _mesa_req_pact_done
yosoyubik Aug 21, 2024
86f2840
mesa: early return after hearing fragment outside window
yosoyubik Aug 21, 2024
764ed6d
mesa: only delete from bitset if fragmen was in flight
yosoyubik Aug 23, 2024
1528bad
mesa: on acked page, resend up to the next fragment
yosoyubik Aug 23, 2024
1802bb6
mesa: always bitset_del when adding to data buffer
yosoyubik Aug 27, 2024
95ef0b1
mesa: add out-of-window fragments to data buffer
yosoyubik Aug 27, 2024
1103e9b
mesa: fix misorder queue update
yosoyubik Aug 27, 2024
f9a18a8
mesa: restore early return for out of window fragments
yosoyubik Aug 27, 2024
2be8c02
mesa: bitset_del for misordered and lef_d fragment
yosoyubik Aug 27, 2024
c4dca5f
mesa: fix memory leak
yosoyubik Aug 27, 2024
c60fbb2
mesa WIP fix resend timer
yosoyubik Aug 27, 2024
05fe7e9
mesa: fix remaining fragments
yosoyubik Aug 28, 2024
b756796
mesa: init congestion to microseconds
yosoyubik Aug 28, 2024
2895f5d
mesa: update resent packet send time
yosoyubik Aug 28, 2024
f679742
mesa: use RTO as next timer resend
yosoyubik Aug 28, 2024
9c4a01d
mesa: burn misorder queue on out-ot-window fragments
yosoyubik Aug 28, 2024
5c932e9
mesa: don't try to resend after ack
yosoyubik Aug 28, 2024
a7821f2
mesa: use correct length when inserting jumbo frame
yosoyubik Aug 28, 2024
f19e314
mesa: remove misordered queue handling
yosoyubik Aug 28, 2024
6689197
mesa: fix misordered queue handling
yosoyubik Aug 29, 2024
50b543c
mesa: misc. bugfixes (#716)
pkova Sep 6, 2024
ea677f3
http: streaming (#676)
pkova Sep 6, 2024
dd5fae4
mesa: add failing hamt test
yosoyubik Sep 9, 2024
765d170
mesa: use set for pit lanes
yosoyubik Sep 10, 2024
0d8eb8b
mesa: don't send auth response for single-fragment message
yosoyubik Sep 11, 2024
96e28a9
u3: corrects hashtable trimming in u3h_put_get()
joemfb Sep 11, 2024
204a8c1
test: fixes memory managment in new hamt_test
joemfb Sep 11, 2024
c74c45e
test: cleans up existing hashtable_tests
joemfb Sep 11, 2024
a83df1e
mesa: more misc bugfixes (#718)
yosoyubik Sep 11, 2024
5f47598
Lagoon jets for IEEE 754 floats. (#638)
pkova Sep 11, 2024
234fb4b
mesa: use sentinel value instead of deleting
yosoyubik Sep 17, 2024
daa2e13
build: add malloc_error_break breakpoint
yosoyubik Sep 17, 2024
e1cf785
mesa: fix double free
yosoyubik Sep 18, 2024
95535f6
mesa: only ratchet forward if lss ingests the fragment
yosoyubik Sep 18, 2024
bf272b4
mesa: copy misorderd fragments when burning the queue
yosoyubik Sep 19, 2024
08462fd
mesa: decrease refcount when getting sentinel value from the pit
yosoyubik Sep 19, 2024
ec18f6c
mesa: fix memset
yosoyubik Sep 20, 2024
9acc0ca
mesa: correctly free jumbo cache line
yosoyubik Sep 21, 2024
b83c777
mesa: add comment
yosoyubik Sep 21, 2024
02879ce
Merge remote-tracking branch 'origin/jb/plot' into mesa-pairs
yosoyubik Sep 21, 2024
7a33d31
jets: add chacha jet declaration for %137
yosoyubik Sep 23, 2024
8467e73
mesa: WIP congestion control fix
yosoyubik Sep 26, 2024
b669acd
mesa: remove some prints
pkova Sep 27, 2024
736cb64
Merge branch 'next/kelvin/410' into pkova/merge
pkova Sep 27, 2024
d7acc69
Merge develop to next/kelvin/410 (#721)
pkova Sep 27, 2024
8f8089d
Merge branch 'next/kelvin/410' into mesa-pairs
pkova Sep 27, 2024
6425d35
mesa: call uv_close on the resend timer
pkova Sep 30, 2024
2d5c1a5
mesa: overlapping ranges need memmove
pkova Sep 30, 2024
f7b55a5
mesa: freeing but not closing a libuv handle causes loom corruption
pkova Oct 1, 2024
06562f7
mesa: do not leak pict
pkova Oct 4, 2024
5290e9b
mesa: fix very many memory leaks
pkova Oct 7, 2024
b52c8aa
Merge remote-tracking branch 'origin/develop' into mesa-pairs
ripperi Oct 9, 2024
97c40bc
ext: upgrade urcrypt and include monocypher
ripperi Oct 7, 2024
da7fc1c
mesa: fix pkg includes
ripperi Oct 7, 2024
494f136
crc: fix incompitable pointer type
ripperi Oct 7, 2024
98a4a0e
mesa: initialize var before usage
ripperi Oct 7, 2024
53434c5
mesa: use correct format specifiers on linux
ripperi Oct 7, 2024
2a01589
build: update build for mesa-pairs
ripperi Oct 7, 2024
ee7567b
mesa: remove dereference of null pointer
yosoyubik Oct 11, 2024
63ec415
mesa: scry again if previous +peek blocked
yosoyubik Oct 13, 2024
5e59720
nock: revert byte padding nock.c
yosoyubik Oct 14, 2024
79241e1
Merge branch 'next/kelvin/410' into develop
pkova Oct 17, 2024
f1d8477
build: merge develop to next/kelvin/410, convert lagoon to zig build
pkova Oct 17, 2024
24054c9
Merge develop to next/kelvin/410 (#737)
pkova Oct 17, 2024
7580828
Revert "nock: revert byte padding nock.c"
pkova Oct 18, 2024
4232f8e
Merge branch 'next/kelvin/410' into mesa-pairs
pkova Oct 18, 2024
c4ba180
Revert "bazel: delete bazel build system"
yosoyubik Oct 14, 2024
bbb93ae
mesa: no-op if waiting for scry response
yosoyubik Oct 18, 2024
793046b
tree: restructure jet dashboard for easy upgrades
pkova Oct 21, 2024
83e2517
build: upgrade VERSION to 3.2
pkova Oct 21, 2024
7f3c040
build: restore ed sign and veri jets for 138
pkova Oct 22, 2024
c337d9a
Revert "Revert "bazel: delete bazel build system""
pkova Oct 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/shared.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ jobs:
-Dpace=${{inputs.pace}} \
--summary all
fi

- name: Run unit tests
run: |
zig build \
Expand Down
6 changes: 6 additions & 0 deletions MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
###############################################################################
# Bazel now uses Bzlmod by default to manage external dependencies.
# Please consider migrating your external dependencies from WORKSPACE to MODULE.bazel.
#
# For more details, please check https://github.com/bazelbuild/bazel/issues/18958
###############################################################################
Empty file.
117 changes: 117 additions & 0 deletions bazel/third_party/softblas/softblas.BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
# FILEPATH: /home/neal/lagoon/vere/bazel/third_party/softblas/softblas.BUILD

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

cc_library(
name = "softblas",
visibility = ["//visibility:public"],
deps = select({
"@platforms//cpu:aarch64": [":softblas_aarch64"],
"@platforms//cpu:x86_64": [":softblas_x86_64"],
"//conditions:default": [],
}),
)

cc_library(
name = "softblas_aarch64",
visibility = ["//visibility:public"],
hdrs = ["include/softblas.h"],
includes = ["include"],
srcs = [
"include/softblas.h",
"src/softblas_state.c",
"src/blas/level1/sasum.c",
"src/blas/level1/dasum.c",
"src/blas/level1/hasum.c",
"src/blas/level1/qasum.c",
"src/blas/level1/saxpy.c",
"src/blas/level1/daxpy.c",
"src/blas/level1/haxpy.c",
"src/blas/level1/qaxpy.c",
"src/blas/level1/scopy.c",
"src/blas/level1/dcopy.c",
"src/blas/level1/hcopy.c",
"src/blas/level1/qcopy.c",
"src/blas/level1/sdot.c",
"src/blas/level1/ddot.c",
"src/blas/level1/hdot.c",
"src/blas/level1/qdot.c",
"src/blas/level1/snrm2.c",
"src/blas/level1/dnrm2.c",
"src/blas/level1/hnrm2.c",
"src/blas/level1/qnrm2.c",
"src/blas/level1/sscal.c",
"src/blas/level1/dscal.c",
"src/blas/level1/hscal.c",
"src/blas/level1/qscal.c",
"src/blas/level1/sswap.c",
"src/blas/level1/dswap.c",
"src/blas/level1/hswap.c",
"src/blas/level1/qswap.c",
"src/blas/level1/isamax.c",
"src/blas/level1/idamax.c",
"src/blas/level1/ihamax.c",
"src/blas/level1/iqamax.c",
"src/blas/level2/sgemv.c",
"src/blas/level2/dgemv.c",
"src/blas/level2/hgemv.c",
"src/blas/level2/qgemv.c",
"src/blas/level3/sgemm.c",
"src/blas/level3/dgemm.c",
"src/blas/level3/hgemm.c",
"src/blas/level3/qgemm.c"
],
deps = ["@softfloat"],
)

cc_library(
name = "softblas_x86_64",
visibility = ["//visibility:public"],
hdrs = ["include/softblas.h"],
includes = ["include"],
srcs = [
"include/softblas.h",
"src/softblas_state.c",
"src/blas/level1/sasum.c",
"src/blas/level1/dasum.c",
"src/blas/level1/hasum.c",
"src/blas/level1/qasum.c",
"src/blas/level1/saxpy.c",
"src/blas/level1/daxpy.c",
"src/blas/level1/haxpy.c",
"src/blas/level1/qaxpy.c",
"src/blas/level1/scopy.c",
"src/blas/level1/dcopy.c",
"src/blas/level1/hcopy.c",
"src/blas/level1/qcopy.c",
"src/blas/level1/sdot.c",
"src/blas/level1/ddot.c",
"src/blas/level1/hdot.c",
"src/blas/level1/qdot.c",
"src/blas/level1/snrm2.c",
"src/blas/level1/dnrm2.c",
"src/blas/level1/hnrm2.c",
"src/blas/level1/qnrm2.c",
"src/blas/level1/sscal.c",
"src/blas/level1/dscal.c",
"src/blas/level1/hscal.c",
"src/blas/level1/qscal.c",
"src/blas/level1/sswap.c",
"src/blas/level1/dswap.c",
"src/blas/level1/hswap.c",
"src/blas/level1/qswap.c",
"src/blas/level1/isamax.c",
"src/blas/level1/idamax.c",
"src/blas/level1/ihamax.c",
"src/blas/level1/iqamax.c",
"src/blas/level2/sgemv.c",
"src/blas/level2/dgemv.c",
"src/blas/level2/hgemv.c",
"src/blas/level2/qgemv.c",
"src/blas/level3/sgemm.c",
"src/blas/level3/dgemm.c",
"src/blas/level3/hgemm.c",
"src/blas/level3/qgemm.c"
],
deps = ["@softfloat"],
)
26 changes: 25 additions & 1 deletion build.zig
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const std = @import("std");

const VERSION = "3.1";
const VERSION = "3.2";

const targets: []const std.Target.Query = &.{
.{ .cpu_arch = .aarch64, .os_tag = .macos, .abi = null },
Expand Down Expand Up @@ -283,6 +283,11 @@ fn build_single(
.optimize = optimize,
});

const softblas = b.dependency("softblas", .{
.target = target,
.optimize = optimize,
});

const softfloat = b.dependency("softfloat", .{
.target = target,
.optimize = optimize,
Expand Down Expand Up @@ -485,10 +490,12 @@ fn build_single(
pkg_noun.linkLibrary(pdjson.artifact("pdjson"));
pkg_noun.linkLibrary(sigsegv.artifact("sigsegv"));
pkg_noun.linkLibrary(softfloat.artifact("softfloat"));
pkg_noun.linkLibrary(softblas.artifact("softblas"));
if (t.os.tag == .linux)
pkg_noun.linkLibrary(unwind.artifact("unwind"));
pkg_noun.linkLibrary(urcrypt.artifact("urcrypt"));
pkg_noun.linkLibrary(whereami.artifact("whereami"));
pkg_noun.linkLibrary(zlib.artifact("z"));
pkg_noun.linkLibC();

pkg_noun.addIncludePath(b.path("pkg/noun"));
Expand Down Expand Up @@ -556,12 +563,16 @@ fn build_single(
"jets/c/can.c",
"jets/c/cap.c",
"jets/c/cat.c",
"jets/c/clz.c",
"jets/c/ctz.c",
"jets/c/cut.c",
"jets/c/dis.c",
"jets/c/dor.c",
"jets/c/dvr.c",
"jets/c/end.c",
"jets/c/gor.c",
"jets/c/ham.c",
"jets/c/hew.c",
"jets/c/lsh.c",
"jets/c/mas.c",
"jets/c/met.c",
Expand All @@ -575,6 +586,7 @@ fn build_single(
"jets/c/rap.c",
"jets/c/rep.c",
"jets/c/rev.c",
"jets/c/rig.c",
"jets/c/rip.c",
"jets/c/rsh.c",
"jets/c/sqt.c",
Expand Down Expand Up @@ -615,6 +627,8 @@ fn build_single(
"jets/e/argon2.c",
"jets/e/base.c",
"jets/e/blake.c",
"jets/e/chacha.c",
"jets/e/crc32.c",
"jets/e/cue.c",
"jets/e/ed_add_double_scalarmult.c",
"jets/e/ed_add_scalarmult_scalarmult_base.c",
Expand Down Expand Up @@ -678,12 +692,16 @@ fn build_single(
"jets/f/ut_mull.c",
"jets/f/ut_nest.c",
"jets/f/ut_rest.c",
"jets/g/plot.c",
"jets/i/lagoon.c",
"jets/tree.c",
"jets/137/tree.c",
"log.c",
"manage.c",
"nock.c",
"options.c",
"retrieve.c",
"ship.c",
"serial.c",
"trace.c",
"urth.c",
Expand Down Expand Up @@ -771,6 +789,7 @@ fn build_single(
vere.linkLibrary(libuv.artifact("libuv"));
vere.linkLibrary(lmdb.artifact("lmdb"));
vere.linkLibrary(openssl.artifact("ssl"));
vere.linkLibrary(urcrypt.artifact("urcrypt"));
vere.linkLibrary(zlib.artifact("z"));
vere.linkLibrary(pkg_c3);
vere.linkLibrary(pkg_ent);
Expand All @@ -797,6 +816,10 @@ fn build_single(
"io/hind.c",
"io/http.c",
"io/lick.c",
"io/lss.c",
"io/mesa.c",
"io/mesa/bitset.c",
"io/mesa/pact.c",
"io/term.c",
"io/unix.c",
"ivory/ivory.c",
Expand Down Expand Up @@ -873,6 +896,7 @@ fn build_single(
urbit.linkLibrary(lmdb.artifact("lmdb"));
urbit.linkLibrary(openssl.artifact("ssl"));
urbit.linkLibrary(sigsegv.artifact("sigsegv"));
urbit.linkLibrary(urcrypt.artifact("urcrypt"));
urbit.linkLibrary(whereami.artifact("whereami"));

urbit.addCSourceFiles(.{
Expand Down
3 changes: 3 additions & 0 deletions build.zig.zon
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@
.softfloat = .{
.path = "./ext/softfloat",
},
.softblas = .{
.path = "./ext/softblas",
},
.unwind = .{
.path = "./ext/unwind",
},
Expand Down
80 changes: 80 additions & 0 deletions ext/softblas/build.zig
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
const std = @import("std");

pub fn build(b: *std.Build) void {
const target = b.standardTargetOptions(.{});
const optimize = b.standardOptimizeOption(.{});

const lib = b.addStaticLibrary(.{
.name = "softblas",
.target = target,
.optimize = optimize,
});

const dep_c = b.dependency("softblas", .{
.target = target,
.optimize = optimize,
});

const softfloat = b.dependency("softfloat", .{
.target = target,
.optimize = optimize,
});

lib.addIncludePath(dep_c.path("include"));

lib.addCSourceFiles(.{
.root = dep_c.path(""),
.files = &.{
"src/softblas_state.c",
"src/blas/level1/sasum.c",
"src/blas/level1/dasum.c",
"src/blas/level1/hasum.c",
"src/blas/level1/qasum.c",
"src/blas/level1/saxpy.c",
"src/blas/level1/daxpy.c",
"src/blas/level1/haxpy.c",
"src/blas/level1/qaxpy.c",
"src/blas/level1/scopy.c",
"src/blas/level1/dcopy.c",
"src/blas/level1/hcopy.c",
"src/blas/level1/qcopy.c",
"src/blas/level1/sdot.c",
"src/blas/level1/ddot.c",
"src/blas/level1/hdot.c",
"src/blas/level1/qdot.c",
"src/blas/level1/snrm2.c",
"src/blas/level1/dnrm2.c",
"src/blas/level1/hnrm2.c",
"src/blas/level1/qnrm2.c",
"src/blas/level1/sscal.c",
"src/blas/level1/dscal.c",
"src/blas/level1/hscal.c",
"src/blas/level1/qscal.c",
"src/blas/level1/sswap.c",
"src/blas/level1/dswap.c",
"src/blas/level1/hswap.c",
"src/blas/level1/qswap.c",
"src/blas/level1/isamax.c",
"src/blas/level1/idamax.c",
"src/blas/level1/ihamax.c",
"src/blas/level1/iqamax.c",
"src/blas/level2/sgemv.c",
"src/blas/level2/dgemv.c",
"src/blas/level2/hgemv.c",
"src/blas/level2/qgemv.c",
"src/blas/level3/sgemm.c",
"src/blas/level3/dgemm.c",
"src/blas/level3/hgemm.c",
"src/blas/level3/qgemm.c",
},
.flags = &.{
"-fno-sanitize=all",
},
});

lib.installHeader(dep_c.path("include/softblas.h"), "softblas.h");

lib.linkLibC();
lib.linkLibrary(softfloat.artifact("softfloat"));
b.installArtifact(lib);
}
16 changes: 16 additions & 0 deletions ext/softblas/build.zig.zon
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
.{
.name = "softblas",
.version = "0.0.1",
.dependencies = .{
.softfloat = .{
.path = "../softfloat",
},
.softblas = .{
.url = "https://github.com/urbit/SoftBLAS/archive/cbffb33f19ea02f9ffbd184d445123c57929ec53.tar.gz",
.hash = "1220617c11d869ef2316571a430f51f93470e2d714141deb3bdfaa6b578cf151f258",
},
},
.paths = .{
"",
},
}
Loading
Loading