Skip to content

Commit 8348faf

Browse files
authored
Merge pull request #84 from Derecho-Project/minor_cleanup
Since this is almost entirely non-code changes, and Thiago is no longer available to review pull requests, I'm going to review and merge this myself.
2 parents b6879c9 + 01e5904 commit 8348faf

17 files changed

Lines changed: 255 additions & 184 deletions

File tree

include/cascade/cascade_interface.hpp

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,6 @@ class CriticalDataPathObserver : public derecho::DeserializationContext {
4949
* @param[in] value The value of the K/V pair
5050
* @param[in] cascade_ctxt The cascade context to be used later
5151
* @param[in] is_trigger True for critical data path of `p2p_send`; otherwise, the critical data path of `ordered_send`.
52-
*
53-
* @return void
5452
*/
5553
virtual void operator()(const uint32_t subgroup_idx,
5654
const uint32_t shard_idx,
@@ -111,8 +109,6 @@ class ICascadeStore {
111109
*
112110
* @param[in] value The K/V pair value
113111
* @param[in] as_trigger The object will NOT be used to update the K/V state.
114-
*
115-
* @return void
116112
*/
117113
virtual void put_and_forget(const VT& value, bool as_trigger) const = 0;
118114

@@ -149,7 +145,7 @@ class ICascadeStore {
149145
* If `stable == false`, we only return the data reflecting the latest locally delivered atomic
150146
* broadcast. Otherwise, stable data will be returned, meaning that the persisted states returned
151147
* is safe: they will survive after whole system recovery.
152-
* @param[in] exact
148+
* @param[in] exact
153149
* The exact match flag: this function try to return the value of that key at the 'ver'. If such a
154150
* value does not exists and exact is true, it will throw an exception. If such a value does not
155151
* exists and exact is false, it will return the latest state of the value for 'key' before 'ver'.
@@ -272,7 +268,7 @@ class ICascadeStore {
272268
* @param[in] key The key
273269
* @param[in] ver Version, if `ver == CURRENT_VERSION`, get the latest value.
274270
* @param[in] stable
275-
* @param[in] exact
271+
* @param[in] exact
276272
* The exact match flag: this function try to return the value of that key at the 'ver'. If such a
277273
* value does not exists and exact is true, it will throw an exception. If such a value does not
278274
* exists and exact is false, it will return the latest state of the value for 'key' before 'ver'.
@@ -427,7 +423,7 @@ VT create_null_object_cb(const KT& key = *IK);
427423
* We use both the concepts of null and valid object in Cascade. A null object precisely means 'no data'; while a
428424
* valid object literarily means an object is 'valid'. Technically, a null object has a valid key while invalid
429425
* object does not.
430-
*
426+
*
431427
* @tparam KT The key type.
432428
* @tparam VT The value type.
433429
*/
@@ -489,7 +485,7 @@ class IKeepVersion {
489485

490486
/**
491487
* @brief The version getter
492-
*
488+
*
493489
* Get the version
494490
*
495491
* @return The K/V object's version.

include/cascade/detail/prefix_registry.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,6 @@ class PrefixRegistry {
115115
*
116116
* @param path - the full path.
117117
* @param collector - the lambda function to collect values for all prefixes of a string.
118-
*
119-
* @return
120118
*/
121119
void collect_values_for_prefixes(const std::string& path,
122120
const std::function<void(const std::string& prefix,const std::shared_ptr<T>& value)>& collector) const;

include/cascade/detail/service_impl.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2440,7 +2440,7 @@ void ExecutionEngine<CascadeTypes...>::workhorse(uint32_t worker_id, struct acti
24402440
dbg_default_trace("Cascade context workhorse[{}] started", worker_id);
24412441
while(is_running) {
24422442
// waiting for an action
2443-
Action action = std::move(aq.action_buffer_dequeue(is_running));
2443+
Action action = aq.action_buffer_dequeue(is_running);
24442444
// if action_buffer_dequeue return with is_running == false, value_ptr is invalid(nullptr).
24452445
action.fire(this,worker_id);
24462446

include/cascade/service.hpp

Lines changed: 162 additions & 118 deletions
Large diffs are not rendered by default.

include/cascade/utils.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ class OpenLoopLatencyCollectorClient {
8585
* @param id The event id for corresponding event.
8686
* @param use_local_ts Using loca timestamp.
8787
*
88-
* @return N/A
8988
*/
9089
virtual void ack(uint32_t type, uint32_t id, bool use_local_ts = false) = 0;
9190

scripts/prerequisites/install-ann.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#!/bin/bash
2-
INSTALL_PREFIX=${HOME}/opt-dev
2+
INSTALL_PREFIX="/usr/local"
3+
if [[ $# -gt 0 ]]; then
4+
INSTALL_PREFIX=$1
5+
fi
36

47
wget https://www.cs.umd.edu/~mount/ANN/Files/1.1.2/ann_1.1.2.tar.gz
58
tar -xf ann_1.1.2.tar.gz
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/usr/bin/env bash
2+
set -eu
3+
export TMPDIR=/var/tmp
4+
WORKPATH=`mktemp -d`
5+
INSTALL_PREFIX="/usr/local"
6+
if [[ $# -gt 0 ]]; then
7+
INSTALL_PREFIX=$1
8+
fi
9+
10+
echo "Using INSTALL_PREFIX=${INSTALL_PREFIX}"
11+
12+
cd ${WORKPATH}
13+
git clone https://github.com/k06a/boolinq.git
14+
cd boolinq
15+
cp -r include/ ${INSTALL_PREFIX}
16+
rm -rf ${WORKPATH}

scripts/prerequisites/install-cppflow.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#!/bin/bash
2-
export INSTALL_PREFIX=$HOME/opt-dev/
2+
INSTALL_PREFIX="/usr/local"
3+
if [[ $# -gt 0 ]]; then
4+
INSTALL_PREFIX=$1
5+
fi
36
git clone https://github.com/serizba/cppflow.git
47
cd cppflow
58
git checkout 9ea9519c66d9b1893e2d298db8aa1ee866f903a2

scripts/prerequisites/install-libtorch.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
#!/bin/bash
22

3-
if [ $# != 1 ]; then
3+
if [ $# -lt 1 ]; then
44
echo "USAGE: $0 <cpu|gpu>"
55
exit 0
66
fi
77

8-
INSTALL_PREFIX=${HOME}/opt-dev
8+
INSTALL_PREFIX="/usr/local"
9+
if [[ $# -gt 1 ]]; then
10+
INSTALL_PREFIX=$2
11+
fi
912
INSTALL_TYPE=$1
1013
ZIP_FILE=libtorch-cxx11.zip
1114
if [ $INSTALL_TYPE == 'cpu' ]; then

scripts/prerequisites/install-opencv.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#!/bin/bash
2-
export INSTALL_PREFIX=$HOME/opt-dev/
2+
INSTALL_PREFIX="/usr/local"
3+
if [[ $# -gt 0 ]]; then
4+
INSTALL_PREFIX=$1
5+
fi
36
# install python opencv
47
sudo apt-get -y install python3-opencv
58
# Download and unpack sources

0 commit comments

Comments
 (0)