forked from liang-xiaojian/MOSAC
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
63 lines (46 loc) · 2.25 KB
/
Makefile
File metadata and controls
63 lines (46 loc) · 2.25 KB
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
56
57
58
59
60
61
62
#!/usr/bin/env bash
# Copyright 2026 Ant International
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0
default: test
fetch:
bazel sync --repository_cache="./thirdparty"
release:
bazel build -c opt --distdir=./thirdparty //...
debug:
bazel build --distdir=./thirdparty //...
test_all: test example
test:
bazel test -c opt --distdir=./thirdparty //...
example: offline_shuffle offline_shuffle_opt online_shuffle offline_AST2k online_AST2k offline_DoubleAST2k offline_opt_DoubleAST2k online_DoubleAST2k
offline_shuffle:
bazel run -c opt --distdir=./thirdparty //mosac/example:NDSS_offline_example -- --alone=1 --small_power=4 --big_power=12 --CR=1 --opt=0
offline_shuffle_opt:
bazel run -c opt --distdir=./thirdparty //mosac/example:NDSS_offline_example -- --alone=1 --small_power=4 --big_power=12 --CR=1 --opt=1
online_shuffle:
bazel run -c opt --distdir=./thirdparty //mosac/example:NDSS_online_example -- --alone=1 --small_power=4 --big_power=12 --CR=0 --cache=1
offline_AST2k:
bazel run -c opt --distdir=./thirdparty //mosac/example:AST2k_offline_example -- --alone=1 --small_power=4 --big_power=12 --CR=1
offline_DoubleAST2k:
bazel run -c opt --distdir=./thirdparty //mosac/example:DoubleAST2k_offline_example -- --alone=1 --small_power=4 --big_power=12 --CR=1
offline_opt_DoubleAST2k:
bazel run -c opt --distdir=./thirdparty //mosac/example:opt_DoubleAST2k_offline_example -- --alone=1 --small_power=4 --big_power=12 --CR=1
online_AST2k:
bazel run -c opt --distdir=./thirdparty //mosac/example:socket_example -- --alone=1 --num=4096 --CR=0 --cache=1
online_DoubleAST2k:
bazel run -c opt --distdir=./thirdparty //mosac/example:opt_socket_example -- --alone=1 --num=4096 --CR=0 --cache=1
clean:
bazel clean --expunge
rm -rf bazel-*