Generating hiprtc lib with hcc+hip-clang

Review comments - generate hiprtc lib everytime when HIP_PLATFORM is hcc

Changes for hip-clang

Removing pre processor directive to simplify

Change-Id: Id38ab368362b58ee0458baeb8051fea709ae6bba


[ROCm/hip commit: 54447268cc]
This commit is contained in:
Jatin Chaudhary
2020-02-21 21:52:19 +05:30
committed by Tao Sang
parent b98cb2b0e0
commit fa2cc448de
3 changed files with 12 additions and 18 deletions
+1 -1
View File
@@ -143,7 +143,7 @@ int main()
hipMemcpyDtoH(hOut.get(), dOut, bufferSize);
for (size_t i = 0; i < n; ++i) {
if (a * hX[i] + hY[i] != hOut[i]) { failed("Validation failed."); }
if (fabs(a * hX[i] + hY[i] - hOut[i]) > fabs(hOut[i])* 1e-6) { failed("Validation failed."); }
}
hipFree(dX);