gentoo-overlay/dev-libs/rocm-comgr/files/rocm-comgr-5.0-rocm_path.patch

14 lines
419 B
Diff

Index: comgr/src/comgr-env.cpp
===================================================================
--- comgr.orig/src/comgr-env.cpp
+++ comgr/src/comgr-env.cpp
@@ -247,6 +247,9 @@ InstallationDetector *getDetectorImpl()
if (EnvROCMPath) {
ROCmInstallPath = EnvROCMPath;
}
+ else {
+ ROCmInstallPath = "@GENTOO_PORTAGE_EPREFIX@/usr";
+ }
InstallationDetector *Detector;
if (ROCmInstallPath == "") {