Fix warnings due to deprecated include path

In file included from roctracer/src/roctracer/tracker.h:24,
                 from roctracer/src/roctracer/roctracer.cpp:44:
/opt/rocm/hsa/include/hsa/amd_hsa_signal.h:26:246: note: ‘#pragma message: amd_hsa_signal.h has moved to ...’
   26 | ssage("amd_hsa_signal.h has moved to ...")
      |                                          ^

Change-Id: I38d151d836688083a4fdb0e86a04fc40923a369f
This commit is contained in:
Laurent Morichetti
2022-06-18 13:43:18 -07:00
rodzic 0fa2808779
commit 44dbb56fce
6 zmienionych plików z 17 dodań i 20 usunięć
+3 -3
Wyświetl plik
@@ -21,8 +21,8 @@
#ifndef INC_ROCTRACER_HSA_H_
#define INC_ROCTRACER_HSA_H_
#include <hsa.h>
#include <hsa_ext_amd.h>
#include <hsa/hsa.h>
#include <hsa/hsa_ext_amd.h>
#include <roctracer.h>
#include <rocprofiler/activity.h>
@@ -38,7 +38,7 @@ enum hsa_op_id_t {
#ifdef __cplusplus
#include <iostream>
#include <hsa_api_trace.h>
#include <hsa/hsa_api_trace.h>
namespace roctracer {
namespace hsa_support {
+6 -9
Wyświetl plik
@@ -21,10 +21,10 @@
#ifndef SRC_CORE_TRACKER_H_
#define SRC_CORE_TRACKER_H_
#include <amd_hsa_signal.h>
#include <assert.h>
#include <hsa.h>
#include <hsa_ext_amd.h>
#include <hsa/amd_hsa_signal.h>
#include <hsa/hsa.h>
#include <hsa/hsa_ext_amd.h>
#include <atomic>
@@ -80,12 +80,10 @@ class Tracker {
// Creating a proxy signal
status = hsa_signal_create(1, 0, NULL, &(entry->signal));
if (status != HSA_STATUS_SUCCESS)
FATAL_LOGGING("hsa_signal_create failed");
if (status != HSA_STATUS_SUCCESS) FATAL_LOGGING("hsa_signal_create failed");
status =
hsa_amd_signal_async_handler(entry->signal, HSA_SIGNAL_CONDITION_LT, 1, Handler, entry);
if (status != HSA_STATUS_SUCCESS)
FATAL_LOGGING("hsa_amd_signal_async_handler failed");
if (status != HSA_STATUS_SUCCESS) FATAL_LOGGING("hsa_amd_signal_async_handler failed");
}
// Delete tracker entry
@@ -100,8 +98,7 @@ class Tracker {
static uint64_t sysclock_period = []() {
uint64_t sysclock_hz = 0;
hsa_status_t status = hsa_system_get_info(HSA_SYSTEM_INFO_TIMESTAMP_FREQUENCY, &sysclock_hz);
if (status != HSA_STATUS_SUCCESS)
FATAL_LOGGING("hsa_system_get_info failed");
if (status != HSA_STATUS_SUCCESS) FATAL_LOGGING("hsa_system_get_info failed");
return (uint64_t)1000000000 / sysclock_hz;
}();
+3 -3
Wyświetl plik
@@ -18,9 +18,9 @@
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE. */
#include <hsa.h>
#include <hsa_api_trace.h>
#include <hsa_ven_amd_loader.h>
#include <hsa/hsa.h>
#include <hsa/hsa_api_trace.h>
#include <hsa/hsa_ven_amd_loader.h>
#include <stdio.h>
#include <stdlib.h>
+1 -1
Wyświetl plik
@@ -237,7 +237,7 @@ void DumpStatistics() {
} // namespace
#include <hsa_api_trace.h>
#include <hsa/hsa_api_trace.h>
extern "C" ROCTRACER_EXPORT bool OnLoad(HsaApiTable* /* table */, uint64_t /* runtime_version */,
uint64_t /* failed_tool_count */,
+3 -3
Wyświetl plik
@@ -18,9 +18,9 @@
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE. */
#include "hsa.h"
#include "hsa_ext_amd.h"
#include "hsa_ext_image.h"
#include <hsa/hsa.h>
#include <hsa/hsa_ext_amd.h>
#include <hsa/hsa_ext_image.h>
#include <fcntl.h>
#include <assert.h>
+1 -1
Wyświetl plik
@@ -18,7 +18,7 @@
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE. */
#include <hsa.h>
#include <hsa/hsa.h>
#include <cassert>
#include <cstdlib>