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

Commit a1be13b

Browse files
committed
Suppress miscompiled test on icc.
1 parent 814223b commit a1be13b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

testing/scan.cu

+11
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,17 @@ template <class Vector>
2626
void TestScanSimple(void)
2727
{
2828
typedef typename Vector::value_type T;
29+
30+
// icc miscompiles the intermediate sum updates for custom_numeric.
31+
// The issue doesn't happen with opts disabled, or on other compilers.
32+
// Printing the intermediate sum each iteration "fixes" the issue,
33+
// so likely a bad optimization.
34+
#if THRUST_HOST_COMPILER == THRUST_HOST_COMPILER_INTEL
35+
if (std::is_same<T, custom_numeric>::value)
36+
{
37+
return;
38+
}
39+
#endif
2940

3041
typename Vector::iterator iter;
3142

0 commit comments

Comments
 (0)