gentoo-overlay/dev-libs/rocm-comgr/files/rocm-comgr-6.3.2-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
@@ -269,6 +269,9 @@ InstallationDetector *getDetectorImpl()
if (EnvROCMPath) {
ROCmInstallPath = EnvROCMPath;
}
+ else {
+ ROCmInstallPath = "@GENTOO_PORTAGE_EPREFIX@/usr";
+ }
InstallationDetector *Detector;
if (ROCmInstallPath == "") {