diff options
Diffstat (limited to 'dev-util/roctracer/files/roctracer-5.1.3-no-aqlprofile.patch')
-rw-r--r-- | dev-util/roctracer/files/roctracer-5.1.3-no-aqlprofile.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/dev-util/roctracer/files/roctracer-5.1.3-no-aqlprofile.patch b/dev-util/roctracer/files/roctracer-5.1.3-no-aqlprofile.patch new file mode 100644 index 000000000000..93ddee3e5b43 --- /dev/null +++ b/dev-util/roctracer/files/roctracer-5.1.3-no-aqlprofile.patch @@ -0,0 +1,39 @@ +Skip loading proprietary AQLProfile lib +Index: roctracer-rocm-5.1.3/src/util/hsa_rsrc_factory.cpp +=================================================================== +--- roctracer-rocm-5.1.3.orig/src/util/hsa_rsrc_factory.cpp ++++ roctracer-rocm-5.1.3/src/util/hsa_rsrc_factory.cpp +@@ -127,14 +127,6 @@ HsaRsrcFactory::HsaRsrcFactory(bool init + if (cpu_pool_ == NULL) CHECK_STATUS("CPU memory pool is not found", HSA_STATUS_ERROR); + if (kern_arg_pool_ == NULL) CHECK_STATUS("Kern-arg memory pool is not found", HSA_STATUS_ERROR); + +- // Get AqlProfile API table +- aqlprofile_api_ = {0}; +-#ifdef ROCP_LD_AQLPROFILE +- status = LoadAqlProfileLib(&aqlprofile_api_); +-#else +- status = hsa_api_.hsa_system_get_major_extension_table(HSA_EXTENSION_AMD_AQLPROFILE, hsa_ven_amd_aqlprofile_VERSION_MAJOR, sizeof(aqlprofile_api_), &aqlprofile_api_); +-#endif +- CHECK_STATUS("aqlprofile API table load failed", status); + + // Get Loader API table + loader_api_ = {0}; +Index: roctracer-rocm-5.1.3/test/hsa/src/hsa_rsrc_factory.cpp +=================================================================== +--- roctracer-rocm-5.1.3.orig/test/hsa/src/hsa_rsrc_factory.cpp ++++ roctracer-rocm-5.1.3/test/hsa/src/hsa_rsrc_factory.cpp +@@ -125,14 +125,6 @@ HsaRsrcFactory::HsaRsrcFactory(bool init + if (cpu_pool_ == NULL) CHECK_STATUS("CPU memory pool is not found", HSA_STATUS_ERROR); + if (kern_arg_pool_ == NULL) CHECK_STATUS("Kern-arg memory pool is not found", HSA_STATUS_ERROR); + +- // Get AqlProfile API table +- aqlprofile_api_ = {0}; +-#ifdef ROCP_LD_AQLPROFILE +- status = LoadAqlProfileLib(&aqlprofile_api_); +-#else +- status = hsa_api_.hsa_system_get_major_extension_table(HSA_EXTENSION_AMD_AQLPROFILE, hsa_ven_amd_aqlprofile_VERSION_MAJOR, sizeof(aqlprofile_api_), &aqlprofile_api_); +-#endif +- CHECK_STATUS("aqlprofile API table load failed", status); + + // Get Loader API table + loader_api_ = {0}; |