diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-08-06 20:10:31 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-08-06 20:10:31 +0100 |
commit | 944b3df0f275eea0fd7808913d72a0b280df0c33 (patch) | |
tree | ec33697fafd5ce7028b7619baef7a6d27bb74362 /dev-util/rocprofiler/files | |
parent | 7e17b5aabc330abb894f2b90bef0e3fcbcd180d2 (diff) |
gentoo auto-resync : 06:08:2022 - 20:10:30
Diffstat (limited to 'dev-util/rocprofiler/files')
-rw-r--r-- | dev-util/rocprofiler/files/rocprofiler-4.3.0-no-aqlprofile.patch | 35 | ||||
-rw-r--r-- | dev-util/rocprofiler/files/rocprofiler-5.0.2-gentoo-location.patch | 2 |
2 files changed, 36 insertions, 1 deletions
diff --git a/dev-util/rocprofiler/files/rocprofiler-4.3.0-no-aqlprofile.patch b/dev-util/rocprofiler/files/rocprofiler-4.3.0-no-aqlprofile.patch new file mode 100644 index 000000000000..12480d0baa0a --- /dev/null +++ b/dev-util/rocprofiler/files/rocprofiler-4.3.0-no-aqlprofile.patch @@ -0,0 +1,35 @@ +Skip loading proprietary AQLProfile lib +--- a/src/util/hsa_rsrc_factory.cpp 2021-06-28 23:09:44.000000000 +0800 ++++ b/src/util/hsa_rsrc_factory.cpp 2022-05-11 10:48:23.431989766 +0800 +@@ -138,14 +138,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}; +--- a/test/util/hsa_rsrc_factory.cpp 2021-06-28 23:09:44.000000000 +0800 ++++ b/test/util/hsa_rsrc_factory.cpp 2022-05-11 10:50:44.571990702 +0800 +@@ -135,14 +135,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}; diff --git a/dev-util/rocprofiler/files/rocprofiler-5.0.2-gentoo-location.patch b/dev-util/rocprofiler/files/rocprofiler-5.0.2-gentoo-location.patch index 0605675e41c6..56cc79211ff0 100644 --- a/dev-util/rocprofiler/files/rocprofiler-5.0.2-gentoo-location.patch +++ b/dev-util/rocprofiler/files/rocprofiler-5.0.2-gentoo-location.patch @@ -9,7 +9,7 @@ Index: rocprofiler-rocm-5.0.2/bin/rpl_run.sh -ROOT_DIR=$(dirname $PKG_DIR) -TT_DIR=$ROOT_DIR/roctracer +ROOT_DIR=$PKG_DIR -+TT_DIR=ROOT_DIR ++TT_DIR=$ROOT_DIR RUN_DIR=`pwd` TMP_DIR="/tmp" DATA_DIR="rpl_data_${time_stamp}_$$" |