forked from OSchip/llvm-project
[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:
parent
f1f15d0285
commit
5966c2ec02
|
@ -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());
|
||||
|
|
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue