SWDEV-280672 - Support HIP_PLATFORM=hcc in hipcc with warning

Change-Id: I6b199ea5ebed828a7f82c20d50fdf0fcfb887a64
This commit is contained in:
Rahul Garg
2021-03-31 20:46:52 +00:00
parent b462310394
commit 78b926d48d
+8
View File
@@ -125,6 +125,14 @@ if (not defined $HIP_PLATFORM) {
# Default to amd for now
$HIP_PLATFORM = "amd";
}
} elsif ($HIP_PLATFORM eq "hcc") {
$HIP_PLATFORM = "amd";
warn("Warning: HIP_PLATFORM=hcc is deprecated. Please use HIP_PLATFORM=amd. \n")
} elsif ($HIP_PLATFORM eq "nvcc") {
$HIP_PLATFORM = "nvidia";
$HIP_COMPILER = "nvcc";
$HIP_RUNTIME = "cuda";
warn("Warning: HIP_PLATFORM=nvcc is deprecated. Please use HIP_PLATFORM=nvidia. \n")
}
if ($HIP_COMPILER eq "clang") {