Skip to content

Commit 0ae431a

Browse files
author
Raghuveer Devulapalli
committed
Fix build issues
1 parent e1b7fa7 commit 0ae431a

File tree

2 files changed

+2
-47
lines changed

2 files changed

+2
-47
lines changed

tests/test-argselect.hpp

Lines changed: 1 addition & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -6,53 +6,8 @@
66
template <typename T>
77
class avx512argselect : public ::testing::Test {
88
};
9-
TYPED_TEST_SUITE_P(avx512argselect);
10-
11-
template <typename T>
12-
T std_min_element(std::vector<T> arr,
13-
std::vector<int64_t> arg,
14-
int64_t left,
15-
int64_t right)
16-
{
17-
std::vector<int64_t>::iterator res = std::min_element(
18-
arg.begin() + left,
19-
arg.begin() + right,
20-
[arr](int64_t a, int64_t b) -> bool {
21-
if ((!std::isnan(arr[a])) && (!std::isnan(arr[b]))) {
22-
return arr[a] < arr[b];
23-
}
24-
else if (std::isnan(arr[a])) {
25-
return false;
26-
}
27-
else {
28-
return true;
29-
}
30-
});
31-
return arr[*res];
32-
}
339

34-
template <typename T>
35-
T std_max_element(std::vector<T> arr,
36-
std::vector<int64_t> arg,
37-
int64_t left,
38-
int64_t right)
39-
{
40-
std::vector<int64_t>::iterator res = std::max_element(
41-
arg.begin() + left,
42-
arg.begin() + right,
43-
[arr](int64_t a, int64_t b) -> bool {
44-
if ((!std::isnan(arr[a])) && (!std::isnan(arr[b]))) {
45-
return arr[a] > arr[b];
46-
}
47-
else if (std::isnan(arr[a])) {
48-
return true;
49-
}
50-
else {
51-
return false;
52-
}
53-
});
54-
return arr[*res];
55-
}
10+
TYPED_TEST_SUITE_P(avx512argselect);
5611

5712
TYPED_TEST_P(avx512argselect, test_random)
5813
{

tests/test-argsort.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
#include "test-argsort-common.h"
12
#include "test-argsort.hpp"
23
#include "test-argselect.hpp"
3-
#include "test-argsort-common.h"
44

55
using ArgTestTypes
66
= testing::Types<int32_t, uint32_t, float, uint64_t, int64_t, double>;

0 commit comments

Comments
 (0)