Skip to content

Commit

Permalink
test for lit tests stable_sort_by_key
Browse files Browse the repository at this point in the history
Signed-off-by: Dan Hoeflinger <[email protected]>
  • Loading branch information
danhoeflinger committed Jun 3, 2024
1 parent fb989a4 commit 251acbd
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions clang/test/dpct/thrust_stable_sort_by_key_usm.cu
Original file line number Diff line number Diff line change
Expand Up @@ -36,23 +36,19 @@ int main(void) {
// CHECK:dpct::stable_sort(oneapi::dpl::execution::seq, AH.begin(), AH.end(), BH.begin());
// CHECK-NEXT:dpct::stable_sort(oneapi::dpl::execution::make_device_policy(q_ct1), AD.begin(), AD.end(), BD.begin());
// CHECK-NEXT:dpct::stable_sort(oneapi::dpl::execution::seq, h_ptr, h_ptr + 4, BH.begin());
// CHECK-NEXT:dpct::stable_sort(oneapi::dpl::execution::seq, d_ptr, d_ptr + 4, BD.begin());
// VERSION first last result
thrust::stable_sort_by_key( AH.begin(), AH.end(), BH.begin());
thrust::stable_sort_by_key( AD.begin(), AD.end(), BD.begin());
thrust::stable_sort_by_key( h_ptr, h_ptr+4, BH.begin());
thrust::stable_sort_by_key( d_ptr, d_ptr+4, BD.begin());

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// CHECK:dpct::stable_sort(oneapi::dpl::execution::seq, AH.begin(), AH.end(), BH.begin(), std::greater<int>());
// CHECK-NEXT:dpct::stable_sort(oneapi::dpl::execution::make_device_policy(q_ct1), AD.begin(), AD.end(), BD.begin(), std::greater<int>());
// CHECK-NEXT:dpct::stable_sort(oneapi::dpl::execution::seq, h_ptr, h_ptr + 4, BH.begin(), std::greater<int>());
// CHECK-NEXT:dpct::stable_sort(oneapi::dpl::execution::seq, d_ptr, d_ptr + 4, BD.begin(), std::greater<int>());
// VERSION first last result comparator
thrust::stable_sort_by_key( AH.begin(), AH.end(), BH.begin(), thrust::greater<int>());
thrust::stable_sort_by_key( AD.begin(), AD.end(), BD.begin(), thrust::greater<int>());
thrust::stable_sort_by_key( h_ptr, h_ptr+4, BH.begin(), thrust::greater<int>());
thrust::stable_sort_by_key( d_ptr, d_ptr+4, BD.begin(), thrust::greater<int>());

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// CHECK:dpct::stable_sort(oneapi::dpl::execution::seq, AH.begin(), AH.end(), BH.begin());
Expand Down

0 comments on commit 251acbd

Please sign in to comment.