Fix building of PC Sampling Experiment (#22)

* Fix pc_sample building

* source formatting (clang-format v11) (#43)

Co-authored-by: jrmadsen <jrmadsen@users.noreply.github.com>

* Update samples/pc_sampling/CMakeLists.txt

* Allow static_asserts from hsa/types.hpp to be disabled via build flags (#24)

* Fix pc_sample building

* Fix up hsa type checks

* Fix pc_sample building

* source formatting (clang-format v11)

* Revert check, now allow checks to be disabled by
compiler defines.

* Update samples/pc_sampling/common.h

---------

Co-authored-by: bwelton <bwelton@users.noreply.github.com>
Co-authored-by: Jonathan R. Madsen <jrmadsen@users.noreply.github.com>

* Update single-user-host-trap-retries-service-instantiation.cpp

- include vector

---------

Co-authored-by: Jonathan R. Madsen <jrmadsen@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: bwelton <bwelton@users.noreply.github.com>
This commit is contained in:
Benjamin Welton
2023-09-06 22:06:06 -07:00
committed by GitHub
parent ba0eb11e96
commit 28272b3e5f
6 changed files with 28 additions and 26 deletions
+7 -5
View File
@@ -22,8 +22,9 @@
#include "rocprofiler/hsa.h"
#if defined(ROCPROFILER_CI) && ROCPROFILER_CI > 0
# if HSA_API_TABLE_MAJOR_VERSION <= 0x01
#ifndef ROCPROFILER_UNSAFE_NO_VERSION_CHECK
# if defined(ROCPROFILER_CI) && ROCPROFILER_CI > 0
# if HSA_API_TABLE_MAJOR_VERSION <= 0x01
static_assert(HSA_CORE_API_TABLE_MAJOR_VERSION == 0x01,
"Change in the major version of HSA core API table");
static_assert(HSA_AMD_EXT_API_TABLE_MAJOR_VERSION == 0x01,
@@ -52,7 +53,8 @@ static_assert(sizeof(FinalizerExtTable) == 64, "HSA finalizer API table size cha
static_assert(sizeof(ImageExtTable) == 120, "HSA image-extended API table size changed");
static_assert(sizeof(AmdExtTable) == 552, "HSA amd-extended API table size changed");
static_assert(sizeof(CoreApiTable) == 1016, "HSA core API table size changed");
# else
# error "HSA_API_TABLE_MAJOR_VERSION not supported"
# else
# error "HSA_API_TABLE_MAJOR_VERSION not supported"
# endif
# endif
#endif
#endif