Debian Codegraph @

debian/tests/build-tests

raw
1 #!/bin/bash
2 set -e
3
4 mkdir test && cd test
5
6 cat <<EOF > test.cpp
7 #include <hipblas-common.h>
8 #include <cassert>
9
10 int main() {
11 hipblasStatus_t status = HIPBLAS_STATUS_SUCCESS;
12 assert(status == 0);
13
14 hipblasOperation_t op = HIPBLAS_OP_T;
15 assert(op == 112);
16
17 hipblasComputeType_t compute = HIPBLAS_COMPUTE_32F;
18 assert(compute == 2);
19
20 #if __cplusplus >= 201103L
21 static_assert(HIPBLAS_OP_N == 111, "HIPBLAS_OP_N value mismatch");
22 static_assert(HIPBLAS_OP_T == 112, "HIPBLAS_OP_T value mismatch");
23 static_assert(HIPBLAS_OP_C == 113, "HIPBLAS_OP_C value mismatch");
24 #endif
25
26 return 0;
27 }
28 EOF
29
30 g++ -std=c++17 -I/usr/include/hipblas-common test.cpp -o test
31 ./test