Skip to content

Commit 1fea0fb

Browse files
committed
AMD uses HSA
1 parent b8607d1 commit 1fea0fb

File tree

1 file changed

+2
-2
lines changed
  • offload/plugins-nextgen/amdgpu/src

1 file changed

+2
-2
lines changed

offload/plugins-nextgen/amdgpu/src/rtl.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2717,15 +2717,15 @@ struct AMDGPUDeviceTy : public GenericDeviceTy, AMDGenericDeviceTy {
27172717
interop_spec_t *Prefers) override {
27182718
// TODO: update once targetsync is supported
27192719
if (InteropType != kmp_interop_type_target)
2720-
return interop_spec_t{tgt_fr_hip, {false, 0}, 0};
2720+
return interop_spec_t{tgt_fr_hsa, {false, 0}, 0};
27212721
return interop_spec_t{tgt_fr_none, {false, 0}, 0};
27222722
}
27232723

27242724
Expected<omp_interop_val_t *>
27252725
createInterop(int32_t InteropType, interop_spec_t &InteropSpec) override {
27262726
auto *Ret = new omp_interop_val_t(
27272727
DeviceId, static_cast<kmp_interop_type_t>(InteropType));
2728-
Ret->fr_id = tgt_fr_hip;
2728+
Ret->fr_id = tgt_fr_hsa;
27292729
Ret->vendor_id = omp_vendor_amd;
27302730

27312731
// TODO: implement targetsync support

0 commit comments

Comments
 (0)