-
Notifications
You must be signed in to change notification settings - Fork 3
/
justfile
55 lines (48 loc) · 1.14 KB
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
dev:
just fmt
cargo clippy
cargo test
cargo build --release
fmt:
cargo fmt
cargo sort -w > /dev/null
doc:
cargo doc --no-deps --open
sync-version:
#!/bin/bash -e
cd {{justfile_directory()}}
vers='0.4.0-dev'
echo $vers
for pkg in `fd --glob '*' -t d -d 1 ./crates ./examples`
do
echo $pkg
pushd $pkg > /dev/null
cargo set-version $vers
popd > /dev/null
done
install-examples:
cargo install --offline --path examples/rdma-devices
cargo install --offline --path examples/rdma-pingpong
cargo install --offline --path examples/rdma-async
udeps:
cargo udeps --workspace --all-features
bench-pingpong-rc:
#!/bin/bash -ex
ibv_rc_pingpong -g 2 -s 1024 &
sleep 0.1
ibv_rc_pingpong -g 2 -s 1024 127.0.0.1
sleep 0.1
export RUST_LOG=warn
rdma-pingpong rc &
sleep 0.1
rdma-pingpong rc 127.0.0.1
bench-pingpong-ud:
#!/bin/bash -ex
ibv_ud_pingpong -g 2 -s 1024 &
sleep 0.1
ibv_ud_pingpong -g 2 -s 1024 127.0.0.1
sleep 0.1
export RUST_LOG=warn
rdma-pingpong ud &
sleep 0.1
rdma-pingpong ud 127.0.0.1