V1/V2 API Library Separation

V1 library will be supported as librocprofiler64.so and V2 will be supported as librocprofiler64v2.so and headers will be rocprofiler.h for V1 and v2/rocprofiler.h for v2

Change-Id: Ibe5bdbf2f79f0175342c648e917ae77918186604
This commit is contained in:
Ammar ELWazir
2023-04-20 22:04:46 +00:00
committed by Ammar Elwazir
parent 9dd1a12468
commit 9e62e066fe
62 changed files with 2220 additions and 737 deletions
+2 -2
View File
@@ -51,7 +51,7 @@ THE SOFTWARE.
#include <vector>
#include <algorithm>
#include "inc/rocprofiler.h"
#include "rocprofiler/rocprofiler.h"
#include "util/hsa_rsrc_factory.h"
#include "util/xml.h"
@@ -1169,7 +1169,7 @@ extern "C" PUBLIC_API void OnLoadToolProp(rocprofiler_settings_t* settings)
// Getting GPU indexes
gpu_index_vec = new std::vector<uint32_t>;
get_xml_array(xml, "top.metric", "gpu_index", ",", gpu_index_vec, " ");
// Skipping cpu count to get to correct gpu index
const uint32_t cpu_count = HsaRsrcFactory::Instance().GetCountOfCpuAgents();
std::transform(gpu_index_vec->begin(), gpu_index_vec->end(),