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:
committed by
Ammar Elwazir
parent
9dd1a12468
commit
9e62e066fe
+2
-2
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user