SWDEV-334659 - Fixes build error because of an unused variable in the test (#2724)

Change-Id: Ib1b39ee57efc49217e58332abf843b44b575d880

[ROCm/hip commit: ab6fc6dfde]
Cette révision appartient à :
ROCm CI Service Account
2022-06-13 15:35:15 +05:30
révisé par GitHub
Parent bdee650e17
révision aa46652fb7
+6 -4
Voir le fichier
@@ -56,14 +56,16 @@ static void __global__ vector_square(int *B_d, int *D_d) {
}
}
static void vectorsquare_callback(void* ptr) {
// The callback func is not working with zero parameters
// Temporary fix for adding the below 2 lines and ticket
// has been raised for the same.
// The callback func is hipHostFn_t which is
// of type void (*)(void*). This test is designed to
// work with global variables, hence the workaround to
// print this *ptr value to avoid type mismatch errors.
int *A = reinterpret_cast<int *>(ptr);
A++;
for (int i = 0; i < SIZE; i++) {
if (D_h[i] != B_h[i] * B_h[i]) {
INFO("Validation failed " << D_h[i] << B_h[i]);
INFO("Ignore this garbage value" << *A);
REQUIRE(false);
}
}