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

Commit

Permalink
Suppress miscompiled test on icc.
Browse files Browse the repository at this point in the history
  • Loading branch information
alliepiper committed Jan 24, 2022
1 parent 814223b commit a1be13b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions testing/scan.cu
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,17 @@ template <class Vector>
void TestScanSimple(void)
{
typedef typename Vector::value_type T;

// icc miscompiles the intermediate sum updates for custom_numeric.
// The issue doesn't happen with opts disabled, or on other compilers.
// Printing the intermediate sum each iteration "fixes" the issue,
// so likely a bad optimization.
#if THRUST_HOST_COMPILER == THRUST_HOST_COMPILER_INTEL
if (std::is_same<T, custom_numeric>::value)
{
return;
}
#endif

typename Vector::iterator iter;

Expand Down

0 comments on commit a1be13b

Please sign in to comment.