From d47ce7f51db37398b046b9634a57d026f7c9ed9c Mon Sep 17 00:00:00 2001 From: Evgeny Date: Wed, 20 Dec 2017 18:59:05 -0600 Subject: [PATCH] minor changes --- src/util/hsa_rsrc_factory.cpp | 5 +++-- test/ctrl/tool.cpp | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/util/hsa_rsrc_factory.cpp b/src/util/hsa_rsrc_factory.cpp index a0e13accac..9b27cacbbc 100644 --- a/src/util/hsa_rsrc_factory.cpp +++ b/src/util/hsa_rsrc_factory.cpp @@ -85,9 +85,10 @@ HsaRsrcFactory::HsaRsrcFactory() { // Get AqlProfile API table aqlprofile_api_ = {0}; +#ifdef ROCP_LD_AQLPROFILE + status = LoadAqlProfileLib(&aqlprofile_api_); +#else status = hsa_system_get_extension_table(HSA_EXTENSION_AMD_AQLPROFILE, 1, 0, &aqlprofile_api_); -#ifdef ROCP_LOAD_AQLPROF - if (status != HSA_STATUS_SUCCESS) status = LoadAqlProfileLib(&aqlprofile_api_); #endif CHECK_STATUS("aqlprofile API table load failed", status); diff --git a/test/ctrl/tool.cpp b/test/ctrl/tool.cpp index cf3acb04fa..9077c4718a 100644 --- a/test/ctrl/tool.cpp +++ b/test/ctrl/tool.cpp @@ -4,6 +4,7 @@ // // /////////////////////////////////////////////////////////////////////////////// +#include #include #include #include