Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
Remove dead code.
Browse files Browse the repository at this point in the history
  • Loading branch information
alliepiper committed Jan 26, 2021
1 parent f58d48f commit d61f326
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 46 deletions.
13 changes: 0 additions & 13 deletions testing/pair_scan.cu
Original file line number Diff line number Diff line change
Expand Up @@ -61,19 +61,6 @@ template <typename T>
thrust::inclusive_scan(d_pairs.begin(), d_pairs.end(), d_output.begin(), thrust::maximum<P>());
ASSERT_EQUAL_QUIET(h_output, d_output);


// The tests below get miscompiled on Tesla hw for 8b types

#if THRUST_DEVICE_SYSTEM == THRUST_DEVICE_SYSTEM_CUDA
if(const CUDATestDriver *driver = dynamic_cast<const CUDATestDriver*>(&UnitTestDriver::s_driver()))
{
if(sizeof(T) == sizeof(unittest::uint8_t) && driver->current_device_architecture() < 200)
{
KNOWN_FAILURE;
} // end if
} // end if
#endif

// scan with plus
thrust::exclusive_scan(h_pairs.begin(), h_pairs.end(), h_output.begin(), init, add_pairs());
thrust::exclusive_scan(d_pairs.begin(), d_pairs.end(), d_output.begin(), init, add_pairs());
Expand Down
9 changes: 0 additions & 9 deletions testing/scan_by_key.cu
Original file line number Diff line number Diff line change
Expand Up @@ -437,15 +437,6 @@ DECLARE_VARIABLE_UNITTEST(TestExclusiveScanByKey);
template <typename T>
void TestInclusiveScanByKeyInPlace(const size_t n)
{
// XXX WAR nvbug 1541533
#if 0 //THRUST_HOST_COMPILER == THRUST_HOST_COMPILER_MSVC
if(typeid(T) == typeid(char) ||
typeid(T) == typeid(unsigned char))
{
KNOWN_FAILURE;
}
#endif

thrust::host_vector<int> h_keys(n);
thrust::default_random_engine rng;
for(size_t i = 0, k = 0; i < n; i++){
Expand Down
12 changes: 0 additions & 12 deletions testing/tuple_scan.cu
Original file line number Diff line number Diff line change
Expand Up @@ -58,18 +58,6 @@ struct TestTupleScan
inclusive_scan(d_input.begin(), d_input.end(), d_output.begin(), SumTupleFunctor());
ASSERT_EQUAL_QUIET(h_output, d_output);

// The tests below get miscompiled on Tesla hw for 8b types

#if THRUST_DEVICE_SYSTEM == THRUST_DEVICE_SYSTEM_CUDA
if(const CUDATestDriver *driver = dynamic_cast<const CUDATestDriver*>(&UnitTestDriver::s_driver()))
{
if(sizeof(T) == sizeof(unittest::uint8_t) && driver->current_device_architecture() < 200)
{
KNOWN_FAILURE;
} // end if
} // end if
#endif

// exclusive_scan
tuple<T,T> init(13,17);
exclusive_scan(h_input.begin(), h_input.end(), h_output.begin(), init, SumTupleFunctor());
Expand Down
12 changes: 0 additions & 12 deletions testing/zip_iterator_scan.cu
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,6 @@ struct TestZipIteratorScan
host_vector<Tuple> h_result(n);
device_vector<Tuple> d_result(n);

// The tests below get miscompiled on Tesla hw for 8b types

#if THRUST_DEVICE_SYSTEM == THRUST_DEVICE_SYSTEM_CUDA
if(const CUDATestDriver *driver = dynamic_cast<const CUDATestDriver*>(&UnitTestDriver::s_driver()))
{
if(sizeof(T) == sizeof(unittest::uint8_t) && driver->current_device_architecture() < 200)
{
KNOWN_FAILURE;
} // end if
} // end if
#endif

// inclusive_scan (tuple output)
inclusive_scan( make_zip_iterator(make_tuple(h_data0.begin(), h_data1.begin())),
make_zip_iterator(make_tuple(h_data0.end(), h_data1.end())),
Expand Down

0 comments on commit d61f326

Please sign in to comment.