Adding Make for bulding code samples

Change-Id: I7b62a4c65c5560239e69ea121c6fdaef188f709d
This commit is contained in:
Saurabh Verma
2023-02-10 16:19:03 +00:00
committed by Ammar ELWazir
parent 03c305dbd4
commit 763799349b
10 changed files with 689 additions and 6 deletions
+4 -1
View File
@@ -9,12 +9,15 @@ int main(int argc, char** argv) {
int poll_duration = 5;
if (argc > 1) poll_duration = atoi(argv[1]);
hipDeviceProp_t devProp;
HIP_CALL(hipGetDeviceProperties(&devProp, 0));
CHECK_ROCPROFILER(rocprofiler_initialize());
printf("initialize\n");
rocprofiler_session_id_t dp_session_id;
std::vector<const char*> counters;
counters.emplace_back("FETCH_SIZE");
counters.emplace_back("GRBM_COUNT");
printf("session create\n");