Skip to content

Commit 1afe1ce

Browse files
authored
Merge pull request #380 from bozhiyou/master
Fix failed CI tests.
2 parents 59d5aa5 + e991791 commit 1afe1ce

File tree

11 files changed

+14652
-13185
lines changed

11 files changed

+14652
-13185
lines changed

.circleci/config.yml

+133-100
Large diffs are not rendered by default.

.circleci/longest_common_path.sh

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
#!/bin/bash
2+
# For PR build only; find the longest common path prefix as the build and test subset
3+
4+
longest_common_prefix() {
5+
declare -a possible_prefix
6+
declare i=0
7+
8+
path="${1%/}"
9+
while [ "$path" != "." ]; do
10+
if [[ -d $path && -f "$path/CMakeLists.txt" ]]; then
11+
possible_prefix[$i]="$path"
12+
fi
13+
i=$(($i + 1))
14+
path=$(dirname "$path");
15+
done
16+
17+
lcp="."
18+
for prefix in "${possible_prefix[@]}"; do
19+
for path in $@; do
20+
if [ "${path#$prefix}" = "${path}" ]; then
21+
continue 2
22+
fi
23+
done
24+
lcp="$prefix"
25+
break
26+
done
27+
echo $lcp
28+
}
29+
base=$( \
30+
wget -q -O - "https://api.github.com/repos/$(echo ${CIRCLE_PULL_REQUEST:19} | sed "s/\/pull\//\/pulls\//")" \
31+
| sed -n -e "s/^.*IntelligentSoftwareSystems://p" \
32+
| sed -n -e "s/\".*$//p" \
33+
)
34+
longest_common_prefix $(git -c core.quotepath=false diff --name-only $base $CIRCLE_SHA1)

libgpu/include/internal.h

+4-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ struct multiple_sum {
2424
T el[items];
2525

2626
// https://nvlabs.github.io/cub/classcub_1_1_block_scan.html#a6ed3f77795e582df31d3d6d9d950615e
27-
// "This operation assumes the value of obtained by the T's default constructor (or by zero-initialization if no user-defined default constructor exists) is suitable as the identity value zero for addition."
28-
__device__ __host__ multiple_sum() : multiple_sum(T()) { }
27+
// "This operation assumes the value of obtained by the T's default
28+
// constructor (or by zero-initialization if no user-defined default
29+
// constructor exists) is suitable as the identity value zero for addition."
30+
__device__ __host__ multiple_sum() : multiple_sum(T()) {}
2931

3032
__device__ __host__ multiple_sum(const T e) {
3133
for (int i = 0; i < items; i++)

0 commit comments

Comments
 (0)