hcc_dialects report PASSED when passed

이 커밋은 다음에 포함됨:
Maneesh Gupta
2016-05-03 14:32:59 +05:30
부모 cb6a5d9421
커밋 6181988232
6개의 변경된 파일18개의 추가작업 그리고 0개의 파일을 삭제
+3
파일 보기
@@ -14,6 +14,7 @@ int main(int argc, char *argv[])
{
int sizeElements = 1000000;
size_t sizeBytes = sizeElements * sizeof(float);
bool pass = true;
// Allocate host memory
float *A_h = (float*)malloc(sizeBytes);
@@ -46,6 +47,8 @@ int main(int argc, char *argv[])
float ref= 1.618f * i + 3.142f * i;
if (C_h[i] != ref) {
printf ("error:%d computed=%6.2f, reference=%6.2f\n", i, C_h[i], ref);
pass = false;
}
};
if (pass) printf ("PASSED!\n");
}