From 3efa9b1e5e15dc9c56d9108952cb6825b01ea4b0 Mon Sep 17 00:00:00 2001 From: Ajay Date: Tue, 31 Jan 2023 06:06:36 +0000 Subject: [PATCH] SWDEV-379927 - ignore passing --rocm-path=xxxxx to nvcc nvidia platform --- amd/hipcc/src/hipBin_nvidia.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/amd/hipcc/src/hipBin_nvidia.h b/amd/hipcc/src/hipBin_nvidia.h index d9a7b38a1aaf73..215be6fcca54e5 100644 --- a/amd/hipcc/src/hipBin_nvidia.h +++ b/amd/hipcc/src/hipBin_nvidia.h @@ -375,7 +375,9 @@ void HipBinNvidia::executeHipCCCmd(vector argv) { for (unsigned int i = 2; i < argv.size(); i++) { string isaarg = argv.at(i); ISACMD += " "; - ISACMD += isaarg; + if (!hipBinUtilPtr_->substringPresent(isaarg,"--rocm-path=")) { + ISACMD += isaarg; + } } if (verbose & 0x1) { cout<< "hipcc-cmd: " << ISACMD << "\n";