File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed
opal/mca/accelerator/rocm Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2022 Advanced Micro Devices, Inc. All rights reserved.
2
+ * Copyright (c) 2022-2023 Advanced Micro Devices, Inc. All rights reserved.
3
3
*
4
4
* $COPYRIGHT$
5
5
*
14
14
#include "opal_config.h"
15
15
16
16
#include <stdio.h>
17
+
18
+ /* Not interested in warnings generated in hip_runtime_api.h */
19
+ #pragma GCC diagnostic push
20
+ /* Clang won't quietly accept "-pedantic", but GCC versions older than ~4.8
21
+ * won't quietly accept "-Wpedanic". The whole "#pragma GCC diagnostic ..."
22
+ * facility only was added to GCC as of version 4.6. */
23
+ #if defined(__clang__ ) || (defined(__GNUC__ ) && __GNUC__ >= 6 )
24
+ # pragma GCC diagnostic ignored "-Wpedantic"
25
+ # pragma GCC diagnostic ignored "-Wundef"
26
+ # pragma GCC diagnostic ignored "-Wstrict-prototypes"
27
+ #else
28
+ # pragma GCC diagnostic ignored "-pedantic"
29
+ #endif
17
30
#include <hip/hip_runtime_api.h>
18
31
#include <hip/hip_version.h>
32
+ /* Restore warnings to original state */
33
+ #pragma GCC diagnostic pop
34
+
19
35
20
36
#include "opal/mca/accelerator/accelerator.h"
21
37
You can’t perform that action at this time.
0 commit comments