[OpenMP] Fix mismatched device runtime name

Summary:
The new runtime was deleted. AMD's old runtime used the triple name
`amdgcn` while the new runtime used `amdgpu`. This was not updated when
the old runtime was removed causing the library to not be found on
AMDGPU.
This commit is contained in:
Joseph Huber 2022-02-04 16:53:11 -05:00
parent f1f15d0285
commit 5966c2ec02
2 changed files with 2 additions and 4 deletions

View File

@ -289,8 +289,7 @@ void AMDGPUOpenMPToolChain::addClangTargetOptions(
if (getDriver().isUsingLTO(/* IsOffload */ true))
return;
std::string BitcodeSuffix;
BitcodeSuffix = "amdgcn-" + GPUArch;
std::string BitcodeSuffix = "amdgpu-" + GPUArch;
addOpenMPDeviceRTL(getDriver(), DriverArgs, CC1Args, BitcodeSuffix,
getTriple());

View File

@ -748,8 +748,7 @@ void CudaToolChain::addClangTargetOptions(
if (getDriver().isUsingLTO(/* IsOffload */ true))
return;
std::string BitcodeSuffix;
BitcodeSuffix = "nvptx-" + GpuArch.str();
std::string BitcodeSuffix = "nvptx-" + GpuArch.str();
addOpenMPDeviceRTL(getDriver(), DriverArgs, CC1Args, BitcodeSuffix,
getTriple());