Fix issues related to -Werror in hip tests (#396)

* Fix issues related to -Werror
* Correct the skipped tests
This commit is contained in:
Satyanvesh Dittakavi
2023-08-19 21:38:59 +05:30
committed by GitHub
parent a8640d8c62
commit 605d5eee5d
22 changed files with 93 additions and 77 deletions
+3 -1
View File
@@ -23,6 +23,9 @@ THE SOFTWARE.
#include <hip_test_defgroups.hh>
#include <hip/math_functions.h>
#pragma clang diagnostic ignored "-Wunused-variable"
#pragma clang diagnostic ignored "-Wuninitialized"
// Simple tests for variable type qualifiers:
__device__ int deviceVar;
@@ -62,7 +65,6 @@ __global__ void vectorADD(T __restrict__* A_d, T* B_d, T* C_d, size_t N) {
int a = __shfl_up(x, 1);
#endif
float x = 1.0;
float z = sin(x);
#ifdef NOT_YET
float fastZ = __sin(x);
#endif